Fixed Dialog button text color on old android versions.

This commit is contained in:
Zukero
2017-11-13 14:16:50 +01:00
parent 1d0bdf1e4e
commit 5b2b787f90
2 changed files with 3 additions and 1 deletions

View File

@@ -67,7 +67,6 @@
<Button
android:id="@+id/dialog_template_button"
style="@style/AndorsTrail_Blue_TextButton"
android:textColor="@color/ui_blue_textbutton_textcolor"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" />

View File

@@ -115,7 +115,10 @@ public class CustomDialogFactory {
Button b = new Button(dialog.getContext());
b.setLayoutParams(params);
//Old android versions need this "reminder"
b.setBackgroundDrawable(dialog.getContext().getResources().getDrawable(R.drawable.ui_blue_textbutton));
b.setTextColor(dialog.getContext().getResources().getColor(R.color.ui_blue_palette_text_gray_light));
b.setText(textId);
b.setOnClickListener(new OnClickListener() {