OSDN Git Service

Change text size of header title in advanced bluetooth
authorhughchen <hughchen@google.com>
Thu, 19 Sep 2019 08:57:14 +0000 (16:57 +0800)
committerhughchen <hughchen@google.com>
Thu, 19 Sep 2019 08:57:14 +0000 (16:57 +0800)
1. change the text size of header title
2. Set gravity of header title as "center"

Bug: 138633953
Test: manually
Change-Id: I358c6a10e3cb97b46c3b8f6d50f7046414ddfb13

res/layout/advanced_bt_entity_sub.xml
res/values/dimens.xml

index 0f30583..359d68b 100644 (file)
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_gravity="center_horizontal"
+        android:gravity="center"
         android:singleLine="false"
         android:ellipsize="marquee"
         android:textDirection="locale"
-        android:layout_marginTop="24dp"/>
+        android:layout_marginTop="24dp"
+        android:textSize="@dimen/advanced_bluetooth_header_title_text_size"/>
 
     <LinearLayout
         android:layout_width="wrap_content"
index 4d0affb..f97da1f 100755 (executable)
 
     <!-- System navigation settings illustration height -->
     <dimen name="system_navigation_illustration_height">320dp</dimen>
+
+    <!-- Header title size of advanced bluetooth device -->
+    <dimen name="advanced_bluetooth_header_title_text_size">16sp</dimen>
 </resources>