Skip to content

Commit

Permalink
[23356]
Browse files Browse the repository at this point in the history
- [TripKitUI] update fragment_routing.xml to remove cursor color by setting textCursorDrawable to null
- [TripKitUI] update fragment_tkui_date_time_picker_dialog.xml to set theme to make the calendar selector color generic
- [TripKitUI] update styles.xml to add custom style for CalendarView
  • Loading branch information
MichaelReyes committed Feb 19, 2025
1 parent da5c0e0 commit acf9db6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@

<CalendarView
android:id="@+id/dpDate"
android:theme="@style/Widget.CalendarView.Custom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:datePickerMode="spinner"
android:background="@android:color/white"
android:spinnersShown="false"
app:layout_constraintTop_toTopOf="parent"
app:appCalendarSelectedTint="@{null}"
android:focusedMonthDateColor="@color/tripKitWarning"
/>

Expand Down
6 changes: 6 additions & 0 deletions TripKitAndroidUI/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,10 @@
<item name="android:windowIsFloating">false</item>
</style>

<style name="Widget.CalendarView.Custom" parent="Theme.MaterialComponents.Light" >
<item name="android:focusedMonthDateColor">@color/description_text</item>
<item name="colorControlActivated">@color/description_text</item>
<item name="android:textColor">@color/black</item>
</style>

</resources>

0 comments on commit acf9db6

Please sign in to comment.