summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
author Kelvin Kwan <kelvinkwan@google.com> 2020-04-08 14:23:30 +0100
committer Kelvin Kwan <kelvinkwan@google.com> 2020-04-14 16:42:37 +0100
commit9d344de052c8a4a87986ca6597e2f8179c0b6829 (patch)
tree2f9c0d9c817803c3cbc34dde7e288c77a3689eb2 /res/layout
parentec7315e0390971780eac1139fd8bfa7a152f2507 (diff)
Show a spinner when user click on cross profile button
Bug: 151733420 Test: manual Change-Id: Ide0d5b9f93117fd05ef87b5cf40b73433d80d42a
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/item_doc_inflated_message_cross_profile.xml57
1 files changed, 37 insertions, 20 deletions
diff --git a/res/layout/item_doc_inflated_message_cross_profile.xml b/res/layout/item_doc_inflated_message_cross_profile.xml
index eb9540d5e..337819a82 100644
--- a/res/layout/item_doc_inflated_message_cross_profile.xml
+++ b/res/layout/item_doc_inflated_message_cross_profile.xml
@@ -25,27 +25,44 @@
android:paddingStart="72dp"
android:paddingEnd="72dp">
- <ImageView
- android:id="@+id/artwork"
- android:layout_width="24dp"
- android:layout_height="24dp"/>
- <TextView
- android:id="@+id/title"
- android:layout_marginTop="8dp"
+ <ProgressBar
+ android:id="@+id/cross_profile_progress"
+ style="@android:style/Widget.Material.Light.ProgressBar"
+ android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textAppearance="@style/EmptyStateTitleText"/>
- <TextView
- android:id="@+id/message"
- android:layout_marginTop="4dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:textAppearance="@style/EmptyStateMessageText"/>
- <Button
- android:id="@+id/button"
- android:layout_marginTop="16dp"
+ android:indeterminate="true"
+ android:indeterminateTint="?attr/colorAccent"/>
+
+ <LinearLayout
+ android:id="@+id/cross_profile_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- style="@style/EmptyStateButton"/>
-</LinearLayout> \ No newline at end of file
+ android:orientation="vertical"
+ android:gravity="center_horizontal">
+
+ <ImageView
+ android:id="@+id/artwork"
+ android:layout_width="24dp"
+ android:layout_height="24dp"/>
+ <TextView
+ android:id="@+id/title"
+ android:layout_marginTop="8dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="@style/EmptyStateTitleText"/>
+ <TextView
+ android:id="@+id/message"
+ android:layout_marginTop="4dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:textAppearance="@style/EmptyStateMessageText"/>
+ <Button
+ android:id="@+id/button"
+ android:layout_marginTop="16dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="@style/EmptyStateButton"/>
+ </LinearLayout>
+</LinearLayout>