Android: Change Custom Alertdialog Background
dialog layout xml:
Solution 1:
I had the same problem, I managed to fix it using a custom dialog like this:
public class CustomDialog extends Dialog {
public CustomDialog(Context context, View view) {
super(context);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(view);
getWindow().getDecorView().setBackgroundResource(android.R.color.transparent);
}
}
Solution 2:
Hey setting your view to builder creates this gray lines on top-bottom,instead you can setView to your dialog.like dialog.setView(layout,0,0,0,0);It will bound your layout to whole dialog.
Post a Comment for "Android: Change Custom Alertdialog Background"