I need some help for my dialog issue. I created dialogFragment from custom view and set positive/negative buttons like this:
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
LayoutInflater inflater = getActivity().getLayoutInflater();
builder.setView(inflater.inflate(R.layout.add_product, null)).
setPositiveButton(R.string.add, new DialogListener(getActivity(), true)).
setNegativeButton(R.string.cancel, new DialogListener(getActivity(), false));
return builder.create();
}
An what I've got:
Here is the question: how can I get buttons like shown in sample:
I like that style of button much more, how can I use it in this case.