Skip to content

Commit ebca8ff

Browse files
committed
make the checklist cross/check and drag handle a bit smaller
1 parent 74cdea8 commit ebca8ff

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
android:background="?attr/selectableItemBackground"
99
android:clickable="true"
1010
android:focusable="true"
11-
android:foreground="@drawable/selector">
11+
android:foreground="@drawable/selector"
12+
android:paddingEnd="@dimen/normal_margin">
1213

1314
<com.simplemobiletools.commons.views.MyTextView
1415
android:id="@+id/checklist_title"
@@ -26,7 +27,8 @@
2627
android:id="@+id/checklist_image"
2728
android:layout_width="@dimen/checklist_image_size"
2829
android:layout_height="@dimen/checklist_image_size"
29-
android:padding="@dimen/activity_margin"
30+
android:paddingTop="@dimen/medium_margin"
31+
android:paddingBottom="@dimen/medium_margin"
3032
android:src="@drawable/ic_cross_vector"
3133
app:layout_constraintBottom_toBottomOf="parent"
3234
app:layout_constraintEnd_toStartOf="@+id/checklist_drag_handle"
@@ -36,7 +38,8 @@
3638
android:id="@+id/checklist_drag_handle"
3739
android:layout_width="@dimen/checklist_image_size"
3840
android:layout_height="@dimen/checklist_image_size"
39-
android:padding="@dimen/normal_margin"
41+
android:paddingTop="@dimen/normal_margin"
42+
android:paddingBottom="@dimen/normal_margin"
4043
android:src="@drawable/ic_drag_handle_vector"
4144
android:visibility="gone"
4245
app:layout_constraintBottom_toBottomOf="parent"

app/src/main/res/values/dimens.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<resources>
2-
<dimen name="checklist_image_size">64dp</dimen>
2+
<dimen name="checklist_image_size">52dp</dimen>
33
</resources>

0 commit comments

Comments
 (0)