Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Commit fb65cb7

Browse files
committed
Bluetooth: sync dialog layout for consistency
* Sync ´Turning on Bluetooth´-dialog layout with frameworks/base/core/res/res/layout/progress_dialog_material.xml Bug: 188222741 Test: adb shell am start com.android.bluetooth/.opp.BluetoothOppBtEnablingActivity, verify ´Turning on Bluetooth´ -dialog looks OK. Change-Id: I0416b6cf9e4c2fd2f8ad79f47fd334972af0d226 Signed-off-by: Timi Rautamäki <[email protected]>
1 parent ed86fed commit fb65cb7

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

res/layout/bt_enabling_progress.xml

+13-8
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,26 @@
2525
<LinearLayout
2626
android:orientation="horizontal"
2727
android:layout_width="match_parent"
28-
android:layout_height="match_parent">
28+
android:layout_height="match_parent"
29+
android:baselineAligned="false"
30+
android:paddingStart="?android:attr/dialogPreferredPadding"
31+
android:paddingTop="@*android:dimen/dialog_padding_top_material"
32+
android:paddingEnd="?android:attr/dialogPreferredPadding"
33+
android:paddingBottom="@*android:dimen/dialog_padding_top_material">
2934

30-
<ProgressBar android:id="@+id/progress"
35+
<ProgressBar
36+
android:id="@+id/progress"
37+
style="?android:attr/progressBarStyle"
3138
android:layout_width="wrap_content"
32-
android:layout_height="wrap_content" />
39+
android:layout_height="wrap_content"
40+
android:max="10000"
41+
android:layout_marginEnd="?android:attr/dialogPreferredPadding" />
3342

3443
<TextView
3544
android:id="@+id/progress_info"
3645
android:layout_width="match_parent"
3746
android:layout_height="wrap_content"
38-
android:layout_marginLeft="20dip"
39-
android:layout_marginRight="20dip"
40-
android:layout_gravity="center_vertical"
41-
android:textAppearance="?android:attr/textAppearanceMedium" />
42-
47+
android:layout_gravity="center_vertical" />
4348
</LinearLayout>
4449

4550
</ScrollView>

0 commit comments

Comments
 (0)