From da4c97c4c2ce45ffe8529c458e57880583ce7b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Mon, 20 Aug 2018 13:25:07 +0200 Subject: [PATCH] Add missing "focusable" attributes. Fixes lint warnings and improves keyboard navigation a little bit. --- app/src/main/res/layout/app_card_horizontal.xml | 3 ++- app/src/main/res/layout/app_card_large.xml | 3 ++- app/src/main/res/layout/app_card_list_item.xml | 3 ++- app/src/main/res/layout/app_details2_links.xml | 3 ++- app/src/main/res/layout/app_list_item.xml | 3 ++- app/src/main/res/layout/installed_app_list_item.xml | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout/app_card_horizontal.xml b/app/src/main/res/layout/app_card_horizontal.xml index 9514bee59..e20f1a100 100644 --- a/app/src/main/res/layout/app_card_horizontal.xml +++ b/app/src/main/res/layout/app_card_horizontal.xml @@ -5,7 +5,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:foreground="?attr/selectableItemBackground" - android:clickable="true"> + android:clickable="true" + android:focusable="true"> + android:clickable="true" + android:focusable="true"> + android:clickable="true" + android:focusable="true"> + tools:ignore="UnusedAttribute" + android:focusable="true"> diff --git a/app/src/main/res/layout/app_list_item.xml b/app/src/main/res/layout/app_list_item.xml index 76f60c7c2..cf0fa98d8 100644 --- a/app/src/main/res/layout/app_list_item.xml +++ b/app/src/main/res/layout/app_list_item.xml @@ -6,7 +6,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:clickable="true" - android:background="?attr/selectableItemBackground"> + android:background="?attr/selectableItemBackground" + android:focusable="true"> diff --git a/app/src/main/res/layout/installed_app_list_item.xml b/app/src/main/res/layout/installed_app_list_item.xml index b6c679fdd..e65779c86 100644 --- a/app/src/main/res/layout/installed_app_list_item.xml +++ b/app/src/main/res/layout/installed_app_list_item.xml @@ -9,7 +9,8 @@ android:paddingTop="8dp" android:paddingBottom="8dp" android:clickable="true" - android:background="?attr/selectableItemBackground"> + android:background="?attr/selectableItemBackground" + android:focusable="true">