summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorDiogo Ferreira <defer@cyngn.com>2014-12-02 14:47:33 +0000
committerSteve Kondik <steve@cyngn.com>2015-03-14 23:47:22 -0700
commit4015b125b647875a8a8d8e204c52157be4124e34 (patch)
treea6393ffcb8594310770f6d0ec1a2f4c747d763d4 /res/layout
parentf8727c0f413ebb9cd94f31145956601fe7bded3d (diff)
downloadandroid_packages_apps_Bluetooth-4015b125b647875a8a8d8e204c52157be4124e34.tar.gz
android_packages_apps_Bluetooth-4015b125b647875a8a8d8e204c52157be4124e34.tar.bz2
android_packages_apps_Bluetooth-4015b125b647875a8a8d8e204c52157be4124e34.zip
bluetooth: Materialize dialogs
Some dialogs imported from CAF are still using a Holo style, this patch changes those to material and changes some layouts for better usability: 1) Changes the enable dialog when something is shared via BT and it is off. 2) Changes the enabling progress dialog. 3) Removes a Toast (visible in screenshots) 4) Sets a transparent theme on the intent receiver, it's only a forwarding activity but it is up for enough time and shows a ugly incomplete view that immediately disappears. Change-Id: Ia3f64f7d22a6486565df3035d22883e8d216dbe0
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/bt_enabling_progress.xml23
-rw-r--r--res/layout/confirm_dialog.xml8
2 files changed, 14 insertions, 17 deletions
diff --git a/res/layout/bt_enabling_progress.xml b/res/layout/bt_enabling_progress.xml
index a0f9776e2..827214d32 100644
--- a/res/layout/bt_enabling_progress.xml
+++ b/res/layout/bt_enabling_progress.xml
@@ -25,20 +25,23 @@
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="match_parent"
+ android:paddingStart="24dip"
+ android:paddingTop="24dip"
+ android:paddingEnd="24dip"
+ android:paddingBottom="16dip"
+ >
- <ProgressBar android:id="@+android:id/progress"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
+ <ProgressBar android:id="@android:id/progress"
+ style="?android:attr/progressBarStyle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:indeterminate="true"
+ android:layout_marginEnd="12dip" />
<TextView
android:id="@+id/progress_info"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="20dip"
- android:layout_marginEnd="20dip"
- android:layout_gravity="center_vertical"
- android:textAppearance="?android:attr/textAppearanceMedium" />
+ style="@style/turning_on_item_text"/>
</LinearLayout>
diff --git a/res/layout/confirm_dialog.xml b/res/layout/confirm_dialog.xml
index a0748ae83..f6e9bee14 100644
--- a/res/layout/confirm_dialog.xml
+++ b/res/layout/confirm_dialog.xml
@@ -29,13 +29,7 @@
<TextView
android:id="@+id/content"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="20dip"
- android:layout_marginEnd="20dip"
- android:gravity="center_horizontal"
- android:textAppearance="?android:attr/textAppearanceMedium" />
-
+ style="@style/confirm_dialog_item_text" />
</LinearLayout>
</ScrollView>