I have the following code. How can I make the Neutral button twice as high or just set its height. Now it is too thin, and users cannot click on it. I do not want to roll back my own dialogue if I can help him.
int SizeIndex = CurrentState.BaseItem.Sub.indexOf(CurrentState.BaseItem.GetDefaultSize());
CharSequence[] csItems = CurrentState.BaseItem.subNamesToArray();
new AlertDialog.Builder(CurrentState.Activity)
.setIcon(R.drawable.icon)
.setTitle(R.string.prompt_SelectSize)
.setSingleChoiceItems(csItems,SizeIndex, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
CurrentState.SelectedSize = (ItemSize) CurrentState.BaseItem.Sub.get(which);
}
})
.setNeutralButton(R.string.alert_dialog_Done, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
if(CurrentState.SelectedSize == null)
{
CurrentState.SelectedSize = CurrentState.BaseItem.GetDefaultSize();
}
CurrentState.Next();
dialog.cancel();
}
})
.show();
source
share