Учитывая функцию как
private void showInputDialog() {
final AlertDialog.Builder alert = new AlertDialog.Builder(getActivity());
final EditText input = new EditText(getActivity());
input.setSingleLine();
FrameLayout container = new FrameLayout(getActivity());
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
params.leftMargin= convertDpToPx(25); //remember to scale correctly
params.rightMargin= convertDpToPx(30);
input.setLayoutParams(params);
container.addView(input);
alert.setTitle("Change City");
alert.setMessage("Hey there, could not find the city you wanted. Please enter a new one:\n");
alert.setView(container);
alert.setPositiveButton("Go", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
changeCity(input.getText().toString());
}
});
alert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
}
});
alert.show();
}
Теперь, когда я получаю этот AlertDialog.Builder в своем приложении, цвета кнопок зеленые (по умолчанию для Android 5), но цвет EditText розовый (R.color.coloraccent). Как изменить цвет кнопок на розовый?
Любая помощь будет оценена