Merge "Use color accent as background color for app info pages."

This commit is contained in:
TreeHugger Robot
2017-03-10 23:58:29 +00:00
committed by Android (Google) Code Review
2 changed files with 19 additions and 8 deletions

View File

@@ -18,7 +18,7 @@
<LinearLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/app_snippet" android:id="@+id/app_snippet"
style="@style/EntityHeader" style="@style/AppInfoHeader"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|top" android:layout_gravity="center_horizontal|top"
@@ -79,7 +79,7 @@
<TextView <TextView
android:id="@+id/app_detail_title" android:id="@+id/app_detail_title"
style="@style/TextAppearance.EntityHeaderTitle" style="@style/TextAppearance.AppInfoTitle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="false" android:singleLine="false"
@@ -89,24 +89,22 @@
<TextView <TextView
android:id="@+id/install_type" android:id="@+id/install_type"
style="@style/TextAppearance.AppInfoSummary"
android:visibility="gone" android:visibility="gone"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="start" android:gravity="start"
android:singleLine="true" android:singleLine="true"
android:ellipsize="marquee" android:ellipsize="marquee"/>
android:textAppearance="@android:style/TextAppearance.Material.Body1"
android:textColor="?android:attr/textColorSecondary"/>
<TextView <TextView
android:id="@+id/app_detail_summary" android:id="@+id/app_detail_summary"
style="@style/TextAppearance.AppInfoSummary"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="start" android:gravity="start"
android:singleLine="true" android:singleLine="true"
android:ellipsize="marquee" android:ellipsize="marquee"/>
android:textAppearance="@android:style/TextAppearance.Material.Body1"
android:textColor="?android:attr/textColorSecondary"/>
</LinearLayout> </LinearLayout>

View File

@@ -428,6 +428,19 @@
<item name="android:textSize">24sp</item> <item name="android:textSize">24sp</item>
</style> </style>
<style name="AppInfoHeader" parent="EntityHeader">
<item name="android:background">?android:attr/colorAccent</item>
</style>
<style name="TextAppearance.AppInfoTitle" parent="TextAppearance.EntityHeaderTitle">
<item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
</style>
<style name="TextAppearance.AppInfoSummary"
parent="@android:style/TextAppearance.Material.Body1">
<item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
</style>
<style name="AppActionPrimaryButton" parent="android:Widget.Material.Button.Colored"/> <style name="AppActionPrimaryButton" parent="android:Widget.Material.Button.Colored"/>
<style name="LockPatternStyle"> <style name="LockPatternStyle">