mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
Fixed Dialog button text color on old android versions.
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user