Skip to content

Commit a2c3c6f

Browse files
committed
Make the EditText request focus when the search fragment appears
1 parent edbd30e commit a2c3c6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
android:layout_width="0dp"
2020
android:layout_height="match_parent"
2121
android:autofillHints="0"
22-
tools:ignore="UnusedAttribute" />
22+
tools:ignore="UnusedAttribute">
23+
<requestFocus/>
24+
</EditText>
2325
<ImageButton
2426
android:id="@+id/clear_button"
2527
android:background="?attr/selectableItemBackground"

0 commit comments

Comments
 (0)