Skip to content

Commit 6e90d22

Browse files
Add touch feedback to sign in button and privacy policy
1 parent d91ed5f commit 6e90d22

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
android:layout_width="match_parent"
2121
android:layout_height="match_parent"
2222
android:fitsSystemWindows="true"
23-
tools:context=".MainActivity">
23+
tools:context=".MainActivity"
24+
tools:openDrawer="start">
2425

2526
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2627
xmlns:app="http://schemas.android.com/apk/res-auto"
@@ -80,13 +81,16 @@
8081

8182
<androidx.constraintlayout.widget.ConstraintLayout
8283
android:layout_width="match_parent"
83-
android:layout_height="match_parent">
84+
android:layout_height="match_parent"
85+
tools:visibility="visible">
8486

8587
<androidx.constraintlayout.widget.ConstraintLayout
8688
android:id="@+id/navigation_user_layout"
8789
android:layout_width="0dp"
8890
android:layout_height="wrap_content"
89-
android:layout_marginBottom="16dp"
91+
android:background="?selectableItemBackground"
92+
android:paddingTop="16dp"
93+
android:paddingBottom="16dp"
9094
app:layout_constraintBottom_toBottomOf="parent"
9195
app:layout_constraintEnd_toEndOf="parent"
9296
app:layout_constraintStart_toStartOf="parent">
@@ -124,7 +128,6 @@
124128
android:id="@+id/navigation_footer_separator"
125129
android:layout_width="0dp"
126130
android:layout_height="1dp"
127-
android:layout_marginBottom="16dp"
128131
android:background="@color/arduino_fog"
129132
app:layout_constraintBottom_toTopOf="@id/navigation_user_layout"
130133
app:layout_constraintEnd_toEndOf="parent"
@@ -134,9 +137,11 @@
134137
android:id="@+id/navigation_privacy_policy"
135138
android:layout_width="0dp"
136139
android:layout_height="wrap_content"
137-
android:layout_marginBottom="16dp"
140+
android:background="?selectableItemBackground"
138141
android:fontFamily="@font/open_sans"
139142
android:gravity="center"
143+
android:paddingTop="16dp"
144+
android:paddingBottom="16dp"
140145
android:text="@string/arduino_auth_privacy"
141146
android:textColor="@color/arduino_gris"
142147
android:textSize="14sp"

0 commit comments

Comments
 (0)