Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Launcher: zh-rCN/zh-rTW last_opened, and the library pill icon and text level with CJK glyphs

NewPlayer02131ffe86c723d0
diff --git a/launcher/app/src/main/res/drawable-zh/ic_apps_pill.xml b/launcher/app/src/main/res/drawable-zh/ic_apps_pill.xml
new file mode 100644
index 000000000..69ee6d524
--- /dev/null
+++ b/launcher/app/src/main/res/drawable-zh/ic_apps_pill.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Chinese text renders low in the line: the icon moves 2dp down to sit level with it. -->
+<inset xmlns:android="http://schemas.android.com/apk/res/android"
+ android:drawable="@drawable/ic_apps"
+ android:insetTop="2dp" />
diff --git a/launcher/app/src/main/res/drawable/ic_apps_pill.xml b/launcher/app/src/main/res/drawable/ic_apps_pill.xml
new file mode 100644
index 000000000..6694b8fc3
--- /dev/null
+++ b/launcher/app/src/main/res/drawable/ic_apps_pill.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The grid icon for the library pill; drawable-zh nudges it down to sit level with CJK text. -->
+<inset xmlns:android="http://schemas.android.com/apk/res/android"
+ android:drawable="@drawable/ic_apps" />
diff --git a/launcher/app/src/main/res/layout-zh/row_app_library.xml b/launcher/app/src/main/res/layout-zh/row_app_library.xml
new file mode 100644
index 000000000..71cf07d3a
--- /dev/null
+++ b/launcher/app/src/main/res/layout-zh/row_app_library.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Chinese text sits low in the line: without font padding and with the text dropped 2dp it lines up with
+ the icon (drawable-zh/ic_apps_pill nudges that down too). -->
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent" android:layout_height="84dp">
+ <TextView android:id="@+id/btnLibrary" style="@style/TopButton"
+ android:layout_gravity="center" android:text="@string/app_library"
+ android:drawableStart="@drawable/ic_apps_pill"
+ android:includeFontPadding="false"
+ android:paddingBottom="2dp" />
+</FrameLayout>
diff --git a/launcher/app/src/main/res/layout/activity_main.xml b/launcher/app/src/main/res/layout/activity_main.xml
index c5d56e735..f85ad320b 100644
--- a/launcher/app/src/main/res/layout/activity_main.xml
+++ b/launcher/app/src/main/res/layout/activity_main.xml
@@ -334,7 +334,7 @@
style="@style/TopButtonIcon"
android:visibility="gone"
android:contentDescription="@string/app_library"
- android:drawableStart="@drawable/ic_apps"
+ android:drawableStart="@drawable/ic_apps_pill"
android:nextFocusDown="@+id/grid" />
<TextView
diff --git a/launcher/app/src/main/res/layout/item_app.xml b/launcher/app/src/main/res/layout/item_app.xml
index 21046c89f..d445bf77e 100644
--- a/launcher/app/src/main/res/layout/item_app.xml
+++ b/launcher/app/src/main/res/layout/item_app.xml
@@ -55,6 +55,7 @@
android:layout_height="22dp"
android:layout_gravity="center_horizontal|top"
android:layout_marginTop="108dp"
+ android:includeFontPadding="false"
android:gravity="center"
android:singleLine="true"
android:ellipsize="end"
diff --git a/launcher/app/src/main/res/layout/row_app_library.xml b/launcher/app/src/main/res/layout/row_app_library.xml
index 056c07800..3a24b9419 100644
--- a/launcher/app/src/main/res/layout/row_app_library.xml
+++ b/launcher/app/src/main/res/layout/row_app_library.xml
@@ -3,5 +3,5 @@
android:layout_width="match_parent" android:layout_height="84dp">
<TextView android:id="@+id/btnLibrary" style="@style/TopButton"
android:layout_gravity="center" android:text="@string/app_library"
- android:drawableStart="@drawable/ic_apps" />
+ android:drawableStart="@drawable/ic_apps_pill" />
</FrameLayout>
diff --git a/launcher/app/src/main/res/values-zh-rCN/strings.xml b/launcher/app/src/main/res/values-zh-rCN/strings.xml
index 338bac76a..6834272fd 100644
--- a/launcher/app/src/main/res/values-zh-rCN/strings.xml
+++ b/launcher/app/src/main/res/values-zh-rCN/strings.xml
@@ -49,6 +49,7 @@
<string name="reorder_hint">按确定选中应用,方向键移动,按返回放下。再按一次返回完成。</string>
<string name="reorder_not_saved">无法保存新顺序</string>
<string name="app_library">应用库</string>
+ <string name="last_opened">上次打开:%1$s</string>
<string name="library_empty">未找到可启动的应用</string>
<string name="library_on_home">已在主屏幕</string>
<string name="library_add_home">添加到主屏幕</string>
diff --git a/launcher/app/src/main/res/values-zh-rTW/strings.xml b/launcher/app/src/main/res/values-zh-rTW/strings.xml
index ef540d356..358237790 100644
--- a/launcher/app/src/main/res/values-zh-rTW/strings.xml
+++ b/launcher/app/src/main/res/values-zh-rTW/strings.xml
@@ -73,6 +73,7 @@
<string name="reorder_hint">按確定選取應用程式,方向鍵移動,按返回放下。再按一次返回完成。</string>
<string name="reorder_not_saved">無法儲存新順序</string>
<string name="app_library">應用程式庫</string>
+ <string name="last_opened">上次開啟:%1$s</string>
<string name="library_empty">找不到可啟動的應用程式</string>
<string name="library_on_home">已在主畫面</string>
<string name="library_add_home">新增至主畫面</string>