add ripple to month button

This commit is contained in:
tibbi 2016-03-22 18:10:33 +01:00
parent ce0dc48061
commit 9d2caaec60
4 changed files with 10 additions and 1 deletions

View File

@ -17,6 +17,7 @@
<TextView
android:id="@+id/table_month"
style="@style/MonthStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/right_arrow"

View File

@ -4,4 +4,8 @@
<item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
</style>
<style name="MonthStyle">
<item name="android:background">?android:attr/selectableItemBackground</item>
</style>
</resources>

View File

@ -3,6 +3,6 @@
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="dark_grey_pressed_mask">#22000000</color>
<color name="dark_grey_pressed_mask">#11000000</color>
<color name="lightGrey">#08000000</color>
</resources>

View File

@ -22,6 +22,10 @@
<item name="android:background">@drawable/button</item>
</style>
<style name="MonthStyle">
<item name="android:background">@drawable/button</item>
</style>
<style name="MyButton" parent="Widget.AppCompat.Button">
<item name="android:textColor">@android:color/white</item>
<item name="background">@drawable/button</item>