Skip to content

Commit b91ff45

Browse files
committed
Library: add effect for delete button
1 parent 9846914 commit b91ff45

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

pinlockview/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ android {
3232
minSdkVersion 21
3333
targetSdkVersion 29
3434
versionCode 6
35-
versionName "2.1.1"
35+
versionName "2.1.2"
3636
}
3737
buildTypes {
3838
release {

pinlockview/src/main/res/layout/layout_delete_item.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
34
android:layout_width="wrap_content"
45
android:layout_height="wrap_content"
56
android:clipChildren="false"
@@ -11,15 +12,19 @@
1112
android:id="@+id/button"
1213
android:layout_width="64dp"
1314
android:layout_height="64dp"
15+
android:background="?attr/actionBarItemBackground"
1416
android:clickable="true"
15-
android:gravity="center">
17+
android:focusable="true"
18+
android:gravity="center"
19+
tools:ignore="UselessParent">
1620

1721
<ImageView
1822
android:id="@+id/buttonImage"
1923
android:layout_width="@dimen/default_delete_button_size"
2024
android:layout_height="@dimen/default_delete_button_size"
2125
android:adjustViewBounds="true"
2226
android:clickable="false"
27+
android:contentDescription="@null"
2328
android:focusable="false"
2429
android:scaleType="fitCenter"
2530
android:src="@drawable/ic_backspace" />

0 commit comments

Comments
 (0)