You can try to make a transparent background, use this if you are a super class - this is the dialog:
getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
or this if your superclass is interactive:
getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
Another solution was similar to "kaushal trivedi". Using DialogFragments:
public class MyDialogFragment extends DialogFragment { ... @Override public void onCreate(Bundle savedInstance){ super.onCreate(savedInstance); setStyle(DialogFragment.STYLE_NO_FRAME, android.R.style.Theme_Translucent_NoTitleBar_Fullscreen); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.my_dialog, container,false); } }
This makes your dialog fullscreen and without background, so you can put whatever you want into it.
source share