The problem is, I'm having an AlertDialog
, in which I inflate my custom layout by this:
AlertDialog.Builder mBuilder = new AlertDialog.Builder(getActivity());
View mView = getLayoutInflater().inflate(R.layout.exp_add, null);
mBuilder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
//some of my data and mView manipulation
});
mBuilder.setView(mView);
AlertDialog dialog = mBuilder.create();
dialog.show();
The question is how do I customize .setPositiveButton
, because I'm having a view with a specific background color, but mBuilder adds a button with default white background color and a pink text button.
Is there any way to customize this button?