summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorDirk Sierd de Vries <contact@lecapuchon.nl>2026-08-09 19:19:49 +0200
committerDirk Sierd de Vries <contact@lecapuchon.nl>2026-08-09 19:19:49 +0200
commit7971690ac82fc5a0f3e547a8c2f3f1acfa5608ab (patch)
tree84201ee351cd7e623b2375780873dcc86aaeeda7 /app/src/main/res
parent3dc9370c4ea3319f027bcb6be137c000c523d497 (diff)
downloadSidePhOnelauncher-7971690ac82fc5a0f3e547a8c2f3f1acfa5608ab.tar.gz
SidePhOnelauncher-7971690ac82fc5a0f3e547a8c2f3f1acfa5608ab.tar.bz2
SidePhOnelauncher-7971690ac82fc5a0f3e547a8c2f3f1acfa5608ab.zip
Add D-pad navigation and keypad-friendly app search
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/adapter_app_drawer.xml23
-rw-r--r--app/src/main/res/layout/fragment_app_drawer.xml2
-rw-r--r--app/src/main/res/layout/fragment_home.xml16
3 files changed, 35 insertions, 6 deletions
diff --git a/app/src/main/res/layout/adapter_app_drawer.xml b/app/src/main/res/layout/adapter_app_drawer.xml
index 9168741..a68f88d 100644
--- a/app/src/main/res/layout/adapter_app_drawer.xml
+++ b/app/src/main/res/layout/adapter_app_drawer.xml
@@ -6,15 +6,26 @@
android:layout_height="wrap_content"
android:animateLayoutChanges="true">
- <TextView
- android:id="@+id/appTitle"
- style="@style/TextLarge"
+ <LinearLayout
+ android:id="@+id/appRow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:maxLines="1"
+ android:focusable="true"
+ android:focusableInTouchMode="false"
+ android:gravity="center_vertical"
+ android:orientation="horizontal"
android:paddingHorizontal="24dp"
- android:paddingVertical="@dimen/app_padding_vertical"
- android:text="@string/app" />
+ android:paddingVertical="@dimen/app_padding_vertical">
+
+ <TextView
+ android:id="@+id/appTitle"
+ style="@style/TextLarge"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:maxLines="1"
+ android:text="@string/app" />
+ </LinearLayout>
<ImageView
android:id="@+id/otherProfileIndicator"
diff --git a/app/src/main/res/layout/fragment_app_drawer.xml b/app/src/main/res/layout/fragment_app_drawer.xml
index 7935654..665a01a 100644
--- a/app/src/main/res/layout/fragment_app_drawer.xml
+++ b/app/src/main/res/layout/fragment_app_drawer.xml
@@ -64,7 +64,9 @@
android:layout_marginBottom="24dp"
android:clipChildren="false"
android:clipToPadding="false"
+ android:descendantFocusability="afterDescendants"
android:fadingEdgeLength="24dp"
+ android:focusable="true"
android:requiresFadingEdge="vertical" />
</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 385532e..7de8a4a 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -88,6 +88,8 @@
style="@style/TextLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:focusable="true"
+ android:focusableInTouchMode="false"
android:hint="@string/app"
android:paddingVertical="@dimen/home_app_padding_vertical"
android:tag="@string/tag_1"
@@ -99,6 +101,8 @@
style="@style/TextLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:focusable="true"
+ android:focusableInTouchMode="false"
android:hint="@string/app"
android:paddingVertical="@dimen/home_app_padding_vertical"
android:tag="@string/tag_2"
@@ -110,6 +114,8 @@
style="@style/TextLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:focusable="true"
+ android:focusableInTouchMode="false"
android:hint="@string/app"
android:paddingVertical="@dimen/home_app_padding_vertical"
android:tag="@string/tag_3"
@@ -121,6 +127,8 @@
style="@style/TextLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:focusable="true"
+ android:focusableInTouchMode="false"
android:hint="@string/app"
android:paddingVertical="@dimen/home_app_padding_vertical"
android:tag="@string/tag_4"
@@ -132,6 +140,8 @@
style="@style/TextLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:focusable="true"
+ android:focusableInTouchMode="false"
android:hint="@string/app"
android:paddingVertical="@dimen/home_app_padding_vertical"
android:tag="@string/tag_5"
@@ -143,6 +153,8 @@
style="@style/TextLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:focusable="true"
+ android:focusableInTouchMode="false"
android:hint="@string/app"
android:paddingVertical="@dimen/home_app_padding_vertical"
android:tag="@string/tag_6"
@@ -154,6 +166,8 @@
style="@style/TextLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:focusable="true"
+ android:focusableInTouchMode="false"
android:hint="@string/app"
android:paddingVertical="@dimen/home_app_padding_vertical"
android:tag="@string/tag_7"
@@ -165,6 +179,8 @@
style="@style/TextLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:focusable="true"
+ android:focusableInTouchMode="false"
android:hint="@string/app"
android:paddingVertical="@dimen/home_app_padding_vertical"
android:tag="@string/tag_8"