File tree 4 files changed +72
-0
lines changed
library/src/main/java/de/mrapp/android/dialog
4 files changed +72
-0
lines changed Original file line number Diff line number Diff line change 14
14
package de .mrapp .android .dialog ;
15
15
16
16
import android .content .Context ;
17
+ import android .graphics .Typeface ;
17
18
import android .os .Bundle ;
19
+
18
20
import androidx .annotation .CallSuper ;
19
21
import androidx .annotation .ColorInt ;
20
22
import androidx .annotation .LayoutRes ;
21
23
import androidx .annotation .NonNull ;
22
24
import androidx .annotation .Nullable ;
23
25
import androidx .annotation .StringRes ;
24
26
import androidx .annotation .StyleRes ;
27
+
25
28
import android .view .View ;
26
29
import android .widget .Button ;
27
30
@@ -132,6 +135,17 @@ public final void setDisabledButtonTextColor(@ColorInt final int color) {
132
135
decorator .setDisabledButtonTextColor (color );
133
136
}
134
137
138
+ @ Nullable
139
+ @ Override
140
+ public final Typeface getButtonTypeface () {
141
+ return decorator .getButtonTypeface ();
142
+ }
143
+
144
+ @ Override
145
+ public final void setButtonTypeface (@ NonNull final Typeface typeface ) {
146
+ decorator .setButtonTypeface (typeface );
147
+ }
148
+
135
149
@ Override
136
150
public final boolean isButtonBarDividerShown () {
137
151
return decorator .isButtonBarDividerShown ();
Original file line number Diff line number Diff line change 14
14
package de .mrapp .android .dialog ;
15
15
16
16
import android .content .Context ;
17
+ import android .graphics .Typeface ;
17
18
import android .os .Bundle ;
18
19
19
20
import androidx .annotation .ArrayRes ;
@@ -78,6 +79,17 @@ public final void setItemColor(@ColorInt final int color) {
78
79
decorator .setItemColor (color );
79
80
}
80
81
82
+ @ Nullable
83
+ @ Override
84
+ public final Typeface getItemTypeface () {
85
+ return decorator .getItemTypeface ();
86
+ }
87
+
88
+ @ Override
89
+ public final void setItemTypeface (@ NonNull final Typeface typeface ) {
90
+ decorator .setItemTypeface (typeface );
91
+ }
92
+
81
93
@ Override
82
94
public final void setItems (@ NonNull final CharSequence [] items ,
83
95
@ Nullable final OnClickListener listener ) {
Original file line number Diff line number Diff line change 19
19
import android .content .res .ColorStateList ;
20
20
import android .graphics .Bitmap ;
21
21
import android .graphics .PorterDuff ;
22
+ import android .graphics .Typeface ;
22
23
import android .graphics .drawable .Drawable ;
23
24
import android .os .Bundle ;
24
25
import android .view .MotionEvent ;
@@ -493,6 +494,17 @@ public final void setTitleColor(@ColorInt final int color) {
493
494
decorator .setTitleColor (color );
494
495
}
495
496
497
+ @ Nullable
498
+ @ Override
499
+ public final Typeface getTitleTypeface () {
500
+ return decorator .getTitleTypeface ();
501
+ }
502
+
503
+ @ Override
504
+ public final void setTitleTypeface (@ NonNull final Typeface typeface ) {
505
+ decorator .setTitleTypeface (typeface );
506
+ }
507
+
496
508
@ Override
497
509
public final int getMessageColor () {
498
510
return decorator .getMessageColor ();
@@ -503,6 +515,17 @@ public final void setMessageColor(@ColorInt final int color) {
503
515
decorator .setMessageColor (color );
504
516
}
505
517
518
+ @ Nullable
519
+ @ Override
520
+ public final Typeface getMessageTypeface () {
521
+ return decorator .getMessageTypeface ();
522
+ }
523
+
524
+ @ Override
525
+ public final void setMessageTypeface (@ NonNull final Typeface typeface ) {
526
+ decorator .setMessageTypeface (typeface );
527
+ }
528
+
506
529
@ Override
507
530
public final Drawable getBackground () {
508
531
return decorator .getBackground ();
Original file line number Diff line number Diff line change 20
20
import android .content .res .ColorStateList ;
21
21
import android .graphics .Bitmap ;
22
22
import android .graphics .PorterDuff ;
23
+ import android .graphics .Typeface ;
23
24
import android .graphics .drawable .Drawable ;
24
25
import android .os .Bundle ;
25
26
import android .view .LayoutInflater ;
@@ -582,6 +583,17 @@ public final void setTitleColor(@ColorInt final int color) {
582
583
decorator .setTitleColor (color );
583
584
}
584
585
586
+ @ Nullable
587
+ @ Override
588
+ public final Typeface getTitleTypeface () {
589
+ return decorator .getTitleTypeface ();
590
+ }
591
+
592
+ @ Override
593
+ public final void setTitleTypeface (@ NonNull final Typeface typeface ) {
594
+ decorator .setTitleTypeface (typeface );
595
+ }
596
+
585
597
@ Override
586
598
public final int getMessageColor () {
587
599
return decorator .getMessageColor ();
@@ -592,6 +604,17 @@ public final void setMessageColor(@ColorInt final int color) {
592
604
decorator .setMessageColor (color );
593
605
}
594
606
607
+ @ Nullable
608
+ @ Override
609
+ public final Typeface getMessageTypeface () {
610
+ return decorator .getMessageTypeface ();
611
+ }
612
+
613
+ @ Override
614
+ public final void setMessageTypeface (@ NonNull final Typeface typeface ) {
615
+ decorator .setMessageTypeface (typeface );
616
+ }
617
+
595
618
@ Override
596
619
public final Drawable getBackground () {
597
620
return decorator .getBackground ();
You can’t perform that action at this time.
0 commit comments