Skip to content

Commit dbe60b8

Browse files
Add touch feedback to the close button
1 parent eb540b4 commit dbe60b8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

OpenScienceJournal/whistlepunk_library/src/main/res/layout/activity_arduino_auth_settings.xml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
xmlns:tools="http://schemas.android.com/tools"
45
android:layout_width="match_parent"
56
android:layout_height="match_parent"
67
android:background="@color/arduino_white">
@@ -20,7 +21,7 @@
2021
android:layout_width="40dp"
2122
android:layout_height="40dp"
2223
android:layout_marginStart="18dp"
23-
android:background="@null"
24+
android:background="?selectableItemBackgroundBorderless"
2425
android:contentDescription="@null"
2526
android:scaleType="centerInside"
2627
android:src="@drawable/ic_arduino_auth_close"
@@ -47,7 +48,7 @@
4748
android:layout_width="0dp"
4849
android:layout_height="wrap_content"
4950
android:layout_marginStart="15dp"
50-
android:layout_marginEnd="30dp"
51+
android:layout_marginEnd="15dp"
5152
android:ellipsize="end"
5253
android:fontFamily="@font/open_sans_bold"
5354
android:gravity="center"
@@ -117,7 +118,8 @@
117118
android:visibility="gone"
118119
app:layout_constraintEnd_toEndOf="parent"
119120
app:layout_constraintStart_toStartOf="parent"
120-
app:layout_constraintTop_toBottomOf="@id/section_arduino_account_email">
121+
app:layout_constraintTop_toBottomOf="@id/section_arduino_account_email"
122+
tools:visibility="visible">
121123

122124
<View
123125
android:id="@+id/section_google_drive_sync_separator"
@@ -178,7 +180,8 @@
178180
android:visibility="gone"
179181
app:layout_constraintEnd_toEndOf="parent"
180182
app:layout_constraintStart_toStartOf="parent"
181-
app:layout_constraintTop_toBottomOf="@id/section_google_drive_switch_layout">
183+
app:layout_constraintTop_toBottomOf="@id/section_google_drive_switch_layout"
184+
tools:visibility="visible">
182185

183186
<TextView
184187
android:id="@+id/section_google_drive_switch_change"

0 commit comments

Comments
 (0)