Merge "Fix overdraw lint warnings in letterbox dialog" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c7355639a0
@@ -16,9 +16,7 @@
|
|||||||
<com.android.wm.shell.compatui.letterboxedu.LetterboxEduDialogLayout
|
<com.android.wm.shell.compatui.letterboxedu.LetterboxEduDialogLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="wrap_content"
|
style="@style/LetterboxDialog">
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:background="@android:color/system_neutral1_900">
|
|
||||||
|
|
||||||
<!-- The background of the top-level layout acts as the background dim. -->
|
<!-- The background of the top-level layout acts as the background dim. -->
|
||||||
|
|
||||||
|
|||||||
@@ -16,14 +16,10 @@
|
|||||||
<com.android.wm.shell.compatui.RestartDialogLayout
|
<com.android.wm.shell.compatui.RestartDialogLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="wrap_content"
|
style="@style/LetterboxDialog">
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:background="@android:color/system_neutral1_900">
|
|
||||||
|
|
||||||
<!-- The background of the top-level layout acts as the background dim. -->
|
<!-- The background of the top-level layout acts as the background dim. -->
|
||||||
|
|
||||||
<!--TODO (b/266288912): Resolve overdraw warning -->
|
|
||||||
|
|
||||||
<!-- Vertical margin will be set dynamically since it depends on task bounds.
|
<!-- Vertical margin will be set dynamically since it depends on task bounds.
|
||||||
Setting the alpha of the dialog container to 0, since it shouldn't be visible until the
|
Setting the alpha of the dialog container to 0, since it shouldn't be visible until the
|
||||||
enter animation starts. -->
|
enter animation starts. -->
|
||||||
|
|||||||
@@ -41,6 +41,9 @@
|
|||||||
<color name="letterbox_education_accent_primary">@android:color/system_accent1_100</color>
|
<color name="letterbox_education_accent_primary">@android:color/system_accent1_100</color>
|
||||||
<color name="letterbox_education_text_secondary">@android:color/system_neutral2_200</color>
|
<color name="letterbox_education_text_secondary">@android:color/system_neutral2_200</color>
|
||||||
|
|
||||||
|
<!-- Letterbox Dialog -->
|
||||||
|
<color name="letterbox_dialog_background">@android:color/system_neutral1_900</color>
|
||||||
|
|
||||||
<!-- GM2 colors -->
|
<!-- GM2 colors -->
|
||||||
<color name="GM2_grey_200">#E8EAED</color>
|
<color name="GM2_grey_200">#E8EAED</color>
|
||||||
<color name="GM2_grey_700">#5F6368</color>
|
<color name="GM2_grey_700">#5F6368</color>
|
||||||
|
|||||||
@@ -80,6 +80,12 @@
|
|||||||
<item name="android:textColor">@color/tv_pip_edu_text</item>
|
<item name="android:textColor">@color/tv_pip_edu_text</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="LetterboxDialog" parent="@android:style/Theme.Holo">
|
||||||
|
<item name="android:layout_width">wrap_content</item>
|
||||||
|
<item name="android:layout_height">wrap_content</item>
|
||||||
|
<item name="android:background">@color/letterbox_dialog_background</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="RestartDialogTitleText">
|
<style name="RestartDialogTitleText">
|
||||||
<item name="android:textSize">24sp</item>
|
<item name="android:textSize">24sp</item>
|
||||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user