diff options
author | 2018-08-21 01:59:35 +0800 | |
---|---|---|
committer | 2018-08-28 11:42:05 +0000 | |
commit | ccd17cc2683375395d7cfe8b4bdd784593be105f (patch) | |
tree | c969eff3b80b68e74fada6bc8df0d31caa1b87a6 | |
parent | 0a15979249d7fe4c1a12c36c980bfe458bbf3b50 (diff) |
Fallback DocumentsUI fontFamily to system default
Use android.support.design.button.MaterialButton instead of Button
Remove unused Button Style
Bug: 112771446
Test: atest DocumentsUITests
Change-Id: If314d974776f1ad5d0a9be66ca91e56ef93c9979
-rw-r--r-- | res/layout/fragment_pick.xml | 14 | ||||
-rw-r--r-- | res/layout/fragment_save.xml | 6 | ||||
-rw-r--r-- | res/layout/inspector_section_title.xml | 6 | ||||
-rw-r--r-- | res/values/styles.xml | 30 |
4 files changed, 15 insertions, 41 deletions
diff --git a/res/layout/fragment_pick.xml b/res/layout/fragment_pick.xml index 266a45bfd..8ce8345ce 100644 --- a/res/layout/fragment_pick.xml +++ b/res/layout/fragment_pick.xml @@ -21,15 +21,17 @@ android:baselineAligned="false" android:gravity="end" android:paddingEnd="@dimen/bottom_bar_padding_end"> - <Button - style="@style/BottomBarButton.Secondary" + + <android.support.design.button.MaterialButton android:id="@android:id/button2" + style="@style/Widget.MaterialComponents.Button" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@android:string/cancel" /> - <Button - style="@style/BottomBarButton.Primary" + android:text="@android:string/cancel"/> + + <android.support.design.button.MaterialButton android:id="@android:id/button1" + style="@style/Widget.MaterialComponents.Button" android:layout_width="wrap_content" - android:layout_height="wrap_content" /> + android:layout_height="wrap_content"/> </LinearLayout> diff --git a/res/layout/fragment_save.xml b/res/layout/fragment_save.xml index 0a7dc3ba0..912d1a6fe 100644 --- a/res/layout/fragment_save.xml +++ b/res/layout/fragment_save.xml @@ -51,12 +51,12 @@ android:layout_width="wrap_content" android:layout_height="match_parent"> - <Button - style="@style/BottomBarButton.Primary" + <android.support.design.button.MaterialButton android:id="@android:id/button1" + style="@style/Widget.MaterialComponents.Button" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/menu_save" /> + android:text="@string/menu_save"/> <ProgressBar android:id="@android:id/progress" diff --git a/res/layout/inspector_section_title.xml b/res/layout/inspector_section_title.xml index 33889a832..d3bdaabe8 100644 --- a/res/layout/inspector_section_title.xml +++ b/res/layout/inspector_section_title.xml @@ -32,8 +32,6 @@ android:paddingTop="5dp" android:paddingBottom="5dp" android:layout_gravity="center_vertical" - android:fontFamily="sans-serif-medium" - android:textSize="15sp" - android:textAlignment="viewStart" - android:textColor="@color/inspector_section_title"/> + android:textAppearance="?attr/textAppearanceHeadline6" + android:textAlignment="viewStart"/> </LinearLayout>
\ No newline at end of file diff --git a/res/values/styles.xml b/res/values/styles.xml index 3af850feb..ffdad0864 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -45,35 +45,9 @@ <item name="android:maxHeight">3dp</item> </style> - <style name="BottomBarButton.Primary" parent="Widget.AppCompat.Button.Colored"> - <item name="android:buttonStyle">@style/BottomBarButton.Primary</item> - <item name="android:theme">@style/BottomBarButton.Primary</item> - - <item name="android:layout_gravity">center_vertical</item> - <item name="android:layout_height">@dimen/bottom_bar_button_height</item> - <item name="android:paddingLeft">@dimen/bottom_bar_button_horizontal_padding</item> - <item name="android:paddingRight">@dimen/bottom_bar_button_horizontal_padding</item> - <item name="android:fontFamily">google-sans-medium</item> - <item name="android:textAllCaps">false</item> - <item name="android:buttonCornerRadius">@dimen/bottom_bar_button_corner_radius</item> - </style> - - <style name="BottomBarButton.Secondary" parent="Widget.AppCompat.Button.Borderless.Colored"> - <item name="android:buttonStyle">@style/BottomBarButton.Secondary</item> - <item name="android:theme">@style/BottomBarButton.Secondary</item> - - <item name="android:layout_gravity">center_vertical</item> - <item name="android:layout_height">@dimen/bottom_bar_button_height</item> - <item name="android:paddingLeft">@dimen/bottom_bar_button_horizontal_padding</item> - <item name="android:paddingRight">@dimen/bottom_bar_button_horizontal_padding</item> - <item name="android:fontFamily">google-sans-medium</item> - <item name="android:textAllCaps">false</item> - <item name="android:buttonCornerRadius">@dimen/bottom_bar_button_corner_radius</item> - </style> - - <style name="SortTitle" parent="android:style/TextAppearance.Material.Widget.ActionBar.Subtitle" > + <style name="SortTitle" parent="@style/TextAppearance.MaterialComponents.Headline6" > <item name="android:textColor">?android:attr/textColorSecondary</item> - <item name="android:fontFamily">sans-serif-medium</item> + <item name="android:textSize">16sp</item> </style> <style name="DrawerMenuPrimary" parent="android:style/TextAppearance.Material.Body2"> |