I have a custom DialogFragment (support library). I set the layout as @ color / GhostWhite, the problem is that I cannot find a way to set the positive / negative button in the same color.
This is how I set the buttons:
builder.setView(view)
.setPositiveButton("Shout!", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
mListener.onDialogPositiveClick(WagDialogFragment.this);
}
})
.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
}
});
return builder.create();
Ranco source
share