forked from square/android-times-square
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix - Support Theme Attributes For setDayTextColor()
- Loading branch information
Quentin Colle
committed
Jan 14, 2022
1 parent
7f2f3ca
commit f17075f
Showing
6 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
<com.squareup.timessquare.CalendarPickerView | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
<com.squareup.timessquare.CalendarPickerView xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/calendar_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/custom_background" | ||
android:clipToPadding="false" | ||
android:paddingBottom="16dp" | ||
android:paddingLeft="16dp" | ||
android:paddingRight="16dp" | ||
android:paddingBottom="16dp" | ||
android:scrollbarStyle="outsideOverlay" | ||
android:theme="@style/MyTheme" | ||
app:tsquare_dayBackground="@drawable/custom_calendar_bg_selector" | ||
app:tsquare_dayTextColor="@color/custom_calendar_text_selector" | ||
app:tsquare_displayDayNamesHeaderRow="false" | ||
app:tsquare_dividerColor="@color/transparent" | ||
app:tsquare_headerTextColor="@color/custom_header_text" | ||
app:tsquare_titleTextStyle="@style/CustomCalendarTitle" | ||
/> | ||
app:tsquare_titleTextStyle="@style/CustomCalendarTitle" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Copyright 2012 Square, Inc. --> | ||
<resources xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<style name="MyTheme"> | ||
|
||
<item name="textDefault">#FFFFFF</item> | ||
<item name="textDisabled">#AAAAAA</item> | ||
<item name="textSelected">#FFFFFF</item> | ||
|
||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<attr name="textDefault" format="color" /> | ||
<attr name="textDisabled" format="color" /> | ||
<attr name="textSelected" format="color" /> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Copyright 2012 Square, Inc. --> | ||
<resources xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<style name="MyTheme"> | ||
|
||
<item name="textDefault">#000000</item> | ||
<item name="textDisabled">#CCCCCC</item> | ||
<item name="textSelected">#FFFFFFFF</item> | ||
|
||
</style> | ||
</resources> |