Skip to content

Commit

Permalink
Vendored ?attr/selectableItemBackgroundBorderless
Browse files Browse the repository at this point in the history
This attribute was part of an AppCompat theme which might be overwritten by the user
Fixes #524
  • Loading branch information
wdullaer committed Sep 20, 2018
1 parent 2234703 commit 4f6ceb6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:attr/colorControlHighlight" />
4 changes: 4 additions & 0 deletions library/src/main/res/drawable/mdtp_month_arrow_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/abc_item_background_holo_light" />
</selector>
8 changes: 4 additions & 4 deletions library/src/main/res/layout/mdtp_daypicker_group.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
android:layout_height="wrap_content"
android:minWidth="48dp"
android:minHeight="48dp"
android:src="@drawable/ic_chevron_left_black_24dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:src="@drawable/mdtp_ic_chevron_left_black_24dp"
android:background="@drawable/mdtp_month_arrow_background"
android:visibility="invisible"
android:nextFocusForward="@+id/mdtp_next_month_arrow"/>
<ImageButton
Expand All @@ -17,7 +17,7 @@
android:layout_height="wrap_content"
android:minWidth="48dp"
android:minHeight="48dp"
android:src="@drawable/ic_chevron_right_black_24dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:src="@drawable/mdtp_ic_chevron_right_black_24dp"
android:background="@drawable/mdtp_month_arrow_background"
android:visibility="invisible"/>
</FrameLayout>

0 comments on commit 4f6ceb6

Please sign in to comment.