diff options
Diffstat (limited to 'src/com/android/datetimepicker/time/RadialTextsView.java')
| -rw-r--r-- | src/com/android/datetimepicker/time/RadialTextsView.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/datetimepicker/time/RadialTextsView.java b/src/com/android/datetimepicker/time/RadialTextsView.java index ea59ec6..9acc8c5 100644 --- a/src/com/android/datetimepicker/time/RadialTextsView.java +++ b/src/com/android/datetimepicker/time/RadialTextsView.java @@ -143,6 +143,17 @@ public class RadialTextsView extends View { mIsInitialized = true; } + /* package */ void setTheme(Context context, boolean themeDark) { + Resources res = context.getResources(); + int textColor; + if (themeDark) { + textColor = res.getColor(R.color.white); + } else { + textColor = res.getColor(R.color.numbers_text_color); + } + mPaint.setColor(textColor); + } + /** * Allows for smoother animation. */ |
