Refined seletable

This commit is contained in:
h4h13 2020-01-06 11:04:09 +05:30
parent 813fb86073
commit e1f2d14ee8
45 changed files with 259 additions and 332 deletions

View file

@ -1,9 +1,24 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2020 Hemanth Savarala.
~
~ Licensed under the GNU General Public License v3
~
~ This is free software: you can redistribute it and/or modify it under
~ the terms of the GNU General Public License as published by
~ the Free Software Foundation either version 3 of the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
~ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~ See the GNU General Public License for more details.
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?attr/colorControlHighlight">
android:color="?android:attr/colorControlHighlight">
<item android:id="@android:id/mask">
<shape>
<corners android:radius="8dp" />
<solid android:color="@android:color/transparent" />
<solid android:color="@color/md_green_500" />
</shape>
</item>
<item>
@ -14,16 +29,6 @@
<solid android:color="?android:attr/colorControlHighlight" />
</shape>
</item>
<item android:state_pressed="true">
<ripple android:color="?android:attr/colorControlHighlight">
<item>
<shape>
<corners android:radius="8dp" />
<solid android:color="?android:attr/colorControlHighlight" />
</shape>
</item>
</ripple>
</item>
</selector>
</item>
</ripple>

View file

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/ripple_material_light" />
</shape>

View file

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/ripple_material_dark"/>
</shape>

View file

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" android:exitFadeDuration="@android:integer/config_shortAnimTime">
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:attr/colorControlHighlight">
<item android:drawable="@drawable/round_selected" android:state_pressed="true" />
<item android:drawable="@android:color/transparent" />
<item
android:id="@android:id/mask"
android:drawable="@drawable/round_selector_mask" />
</selector>
</ripple>

View file

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" android:exitFadeDuration="@android:integer/config_shortAnimTime">
<item android:drawable="@drawable/round_selected_dark" android:state_pressed="true"/>
<item android:drawable="@android:color/transparent"/>
</selector>