Tweak UI of CardPreference and ContextualCard
- CardPreference uses settingslib_preference layout to fix title/summary alignment issue. - Remove stroke for CardPreference and ContextualCard. - Set colorSurface as default card background color. Bug: 188599776 Test: manual visual Change-Id: Id0ee40be60de1f7605849490ee43eae4b9420abb
This commit is contained in:
@@ -103,9 +103,7 @@
|
||||
<color name="homepage_wallpaper_background">#E51AD1</color>
|
||||
<color name="homepage_notification_background">#DD4C9D</color>
|
||||
|
||||
<color name="contextual_card_stroke_color">#1f000000</color>
|
||||
<color name="contextual_card_dismissal_background">@*android:color/material_grey_100</color>
|
||||
<color name="contextual_card_background">@*android:color/background_device_default_light</color>
|
||||
<!-- End of dashboard/homepage icon background colors -->
|
||||
|
||||
<color name="switchbar_background_color">@*android:color/material_grey_600</color>
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<resources
|
||||
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
|
||||
|
||||
<style name="Widget.ActionBar.Base"
|
||||
parent="@android:style/Widget.DeviceDefault.Light.ActionBar.Solid"/>
|
||||
@@ -470,11 +471,9 @@
|
||||
<item name="android:layout_marginBottom">@dimen/contextual_card_vertical_margin</item>
|
||||
<item name="android:layout_marginStart">@dimen/contextual_card_side_margin</item>
|
||||
<item name="android:layout_marginEnd">@dimen/contextual_card_side_margin</item>
|
||||
<item name="cardBackgroundColor">@color/contextual_card_background</item>
|
||||
<item name="cardBackgroundColor">?androidprv:attr/colorSurface</item>
|
||||
<item name="cardCornerRadius">@dimen/contextual_card_corner_radius</item>
|
||||
<item name="cardElevation">0dp</item>
|
||||
<item name="strokeColor">@color/contextual_card_stroke_color</item>
|
||||
<item name="strokeWidth">1dp</item>
|
||||
<item name="rippleColor">?android:attr/colorControlHighlight</item>
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user