Added colored borderless ripple effect

This commit is contained in:
Viktor De Pasquale 2019-11-19 17:56:32 +01:00
parent c5385b5b4c
commit 8918113a31
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?colorPrimary" />

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape android:shape="rectangle">
<corners android:radius="@dimen/r1" />
<solid android:color="?colorPrimaryVariant" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<solid android:color="@android:color/transparent" />
</shape>
</item>
</selector>

View File

@ -23,6 +23,7 @@
<!--///--> <!--///-->
<item name="selectableItemBackground">@drawable/bg_selectable</item> <item name="selectableItemBackground">@drawable/bg_selectable</item>
<item name="selectableItemBackgroundBorderless">@drawable/bg_selectable_borderless</item>
<item name="actionBarSize">@dimen/internal_action_bar_size</item> <item name="actionBarSize">@dimen/internal_action_bar_size</item>
<item name="styleAppbar">@style/WidgetFoundation.Appbar</item> <item name="styleAppbar">@style/WidgetFoundation.Appbar</item>
@ -102,6 +103,7 @@
</style> </style>
<style name="Foundation.Default" parent="Foundation.Base"> <style name="Foundation.Default" parent="Foundation.Base">
<item name="android:theme">@style/Theme.Rayquaza</item>
<item name="colorPrimary">#2196F3</item> <item name="colorPrimary">#2196F3</item>
<item name="colorPrimaryVariant">#802196F3</item> <item name="colorPrimaryVariant">#802196F3</item>
<item name="colorSecondary">#1766A6</item> <item name="colorSecondary">#1766A6</item>