summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorZak Cohen <zakcohen@google.com>2018-10-24 13:26:47 -0700
committerZak Cohen <zakcohen@google.com>2018-10-26 11:25:58 -0700
commitcc4c61472e53838946af48de926b76dbf6bc4a36 (patch)
tree03d2198b99a7c2c250aa37400024fd250b0f9aec /res/layout
parent2c8927889544556a3b13d77130076e2d0f862f43 (diff)
downloadandroid_packages_apps_Trebuchet-cc4c61472e53838946af48de926b76dbf6bc4a36.tar.gz
android_packages_apps_Trebuchet-cc4c61472e53838946af48de926b76dbf6bc4a36.tar.bz2
android_packages_apps_Trebuchet-cc4c61472e53838946af48de926b76dbf6bc4a36.zip
DeepShortcut - show loading placeholder before content is available.
Sometimes the deep shortcuts can take time to load, show an initial loading state before any text is set. Note: changed singleLine to lines=1 as the former causes issues with RTL layout and is deprecated. Bug: 78620208 Tested: manual test on pixel 3 Change-Id: I782addb8d64425a1a95cee4f104fc0bd44809815
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/deep_shortcut.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/layout/deep_shortcut.xml b/res/layout/deep_shortcut.xml
index 4a2ad4225..92f70e661 100644
--- a/res/layout/deep_shortcut.xml
+++ b/res/layout/deep_shortcut.xml
@@ -43,7 +43,8 @@
android:layout_width="@dimen/deep_shortcut_icon_size"
android:layout_height="@dimen/deep_shortcut_icon_size"
android:layout_marginStart="@dimen/popup_padding_start"
- android:layout_gravity="start|center_vertical" />
+ android:layout_gravity="start|center_vertical"
+ android:background="@drawable/ic_deepshortcut_placeholder"/>
<View
android:id="@+id/divider"