Skip to content

Commit ded3f0a

Browse files
committed
Update
1 parent f9b3746 commit ded3f0a

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

app/src/main/res/drawable/krscript_item_ripple_ac.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:color="#33888888">
3+
android:color="#33AFAFAF">
44

55
<item android:id="@android:id/mask">
66
<shape android:shape="rectangle">

app/src/main/res/layout/kr_action_list_item.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:layout_width="match_parent"
55
android:layout_height="wrap_content"
6-
android:background="@drawable/krscript_item_ripple_ac"
6+
android:foreground="@drawable/krscript_item_ripple_ac"
77
android:minHeight="?android:attr/listPreferredItemHeight">
88

99
<ImageView
@@ -30,14 +30,16 @@
3030
android:layout_marginTop="10dp"
3131
android:layout_marginBottom="10dp"
3232
android:layout_alignParentStart="true"
33+
android:layout_centerVertical="true"
34+
android:gravity="center_vertical"
3335
android:layout_toStartOf="@id/kr_widget"
3436
android:layout_width="wrap_content"
3537
android:layout_height="wrap_content">
3638
<ImageView
3739
android:padding="0dp"
3840
android:id="@id/kr_icon"
3941
android:layout_marginStart="5dp"
40-
android:layout_marginTop="5dp"
42+
android:layout_gravity="center_vertical"
4143
android:layout_width="35dp"
4244
android:layout_height="35dp" />
4345

@@ -77,7 +79,7 @@
7779
android:layout_width="30dp"
7880
android:layout_height="30dp"
7981
android:layout_alignParentEnd="true"
80-
android:layout_centerVertical="false"
82+
android:layout_centerVertical="true"
8183
android:layout_marginTop="16dp"
8284
android:layout_marginEnd="19.5dp"
8385
android:layout_marginBottom="10dp"

app/src/main/res/layout/kr_switch_list_item.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:layout_width="match_parent"
55
android:layout_height="wrap_content"
6-
android:background="@drawable/krscript_item_ripple_ac"
6+
android:foreground="@drawable/krscript_item_ripple_ac"
77
android:minHeight="?android:attr/listPreferredItemHeight">
88

99
<ImageView
@@ -30,14 +30,16 @@
3030
android:layout_marginTop="10dp"
3131
android:layout_marginBottom="10dp"
3232
android:layout_alignParentStart="true"
33+
android:layout_centerVertical="true"
34+
android:gravity="center_vertical"
3335
android:layout_toStartOf="@id/kr_switch"
3436
android:layout_width="wrap_content"
3537
android:layout_height="wrap_content">
3638
<ImageView
3739
android:padding="0dp"
3840
android:id="@id/kr_icon"
3941
android:layout_marginStart="5dp"
40-
android:layout_marginTop="5dp"
42+
android:layout_gravity="center_vertical"
4143
android:layout_width="35dp"
4244
android:layout_height="35dp" />
4345

@@ -69,7 +71,6 @@
6971
android:textColor="?android:colorAccent"
7072
style="@style/textSmall"
7173
android:visibility="gone" />
72-
7374
</LinearLayout>
7475
</LinearLayout>
7576

@@ -78,7 +79,7 @@
7879
android:layout_width="wrap_content"
7980
android:layout_height="wrap_content"
8081
android:layout_alignParentEnd="true"
81-
android:layout_centerVertical="false"
82+
android:layout_centerVertical="true"
8283
android:layout_marginTop="18dp"
8384
android:layout_marginEnd="8dp"
8485
android:layout_marginBottom="10dp"

0 commit comments

Comments
 (0)