mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 22:27:39 +00:00
Added colored borderless ripple effect
This commit is contained in:
parent
c5385b5b4c
commit
8918113a31
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:color="?colorPrimary" />
|
14
app/src/main/res/drawable/bg_selectable_borderless.xml
Normal file
14
app/src/main/res/drawable/bg_selectable_borderless.xml
Normal 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>
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user