Use circle ripple for swap units button
This commit is contained in:
parent
8982a4d41e
commit
07b3579c23
2 changed files with 9 additions and 1 deletions
8
app/src/main/res/drawable/ripple_circle_background.xml
Normal file
8
app/src/main/res/drawable/ripple_circle_background.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="?android:attr/colorControlHighlight">
|
||||
<item android:id="@android:id/mask">
|
||||
<shape android:shape="oval">
|
||||
<solid android:color="#000000"/>
|
||||
</shape>
|
||||
</item>
|
||||
</ripple>
|
|
@ -61,7 +61,7 @@
|
|||
android:id="@+id/swap_button"
|
||||
android:layout_width="@dimen/unit_switch_button_size"
|
||||
android:layout_height="@dimen/unit_switch_button_size"
|
||||
android:background="@drawable/ripple_all_corners"
|
||||
android:background="@drawable/ripple_circle_background"
|
||||
android:layout_gravity="center"
|
||||
android:padding="@dimen/activity_margin"
|
||||
android:layout_weight="0.5"
|
||||
|
|
Loading…
Reference in a new issue