Use circle ripple for swap units button

This commit is contained in:
Ensar Sarajčić 2023-09-14 07:55:16 +02:00
parent 8982a4d41e
commit 07b3579c23
2 changed files with 9 additions and 1 deletions

View 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>

View File

@ -61,7 +61,7 @@
android:id="@+id/swap_button" android:id="@+id/swap_button"
android:layout_width="@dimen/unit_switch_button_size" android:layout_width="@dimen/unit_switch_button_size"
android:layout_height="@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:layout_gravity="center"
android:padding="@dimen/activity_margin" android:padding="@dimen/activity_margin"
android:layout_weight="0.5" android:layout_weight="0.5"