bangkk: overlay: Add proper cutout and adjust statusbar dimensions
Change-Id: I66df4d4d77a72df09e095c271501ba55df963687
This commit is contained in:
parent
e3682d6619
commit
529cf8fdda
4 changed files with 14 additions and 23 deletions
|
|
@ -186,9 +186,9 @@
|
||||||
@see https://www.w3.org/TR/SVG/paths.html#PathData
|
@see https://www.w3.org/TR/SVG/paths.html#PathData
|
||||||
-->
|
-->
|
||||||
<string name="config_mainBuiltInDisplayCutout" translatable="false">
|
<string name="config_mainBuiltInDisplayCutout" translatable="false">
|
||||||
M 503.5,65
|
M 507,63
|
||||||
a 36.5,36.5 0 1 0 73,0
|
a 33,33 0 1 0 66,0
|
||||||
a 36.5,36.5 0 1 0 -73,0
|
a 33,33 0 1 0 -66,0
|
||||||
Z
|
Z
|
||||||
@left
|
@left
|
||||||
</string>
|
</string>
|
||||||
|
|
@ -200,10 +200,10 @@
|
||||||
config_mainBuiltInDisplayCutout
|
config_mainBuiltInDisplayCutout
|
||||||
-->
|
-->
|
||||||
<string name="config_mainBuiltInDisplayCutoutRectApproximation" translatable="false">
|
<string name="config_mainBuiltInDisplayCutoutRectApproximation" translatable="false">
|
||||||
M -36.5 0
|
M -33 0
|
||||||
L -36.5 130
|
L -33 126
|
||||||
L 36.5 130
|
L 33 126
|
||||||
L 36.5 0
|
L 33 0
|
||||||
Z
|
Z
|
||||||
</string>
|
</string>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,9 @@
|
||||||
SPDX-License-Identifier: Apache-2.0
|
SPDX-License-Identifier: Apache-2.0
|
||||||
-->
|
-->
|
||||||
<resources>
|
<resources>
|
||||||
|
<!-- Default paddings for content around the corners. -->
|
||||||
|
<dimen name="rounded_corner_content_padding">14dp</dimen>
|
||||||
|
|
||||||
<!-- The default height of the status bar used in {@link SystemBarUtils#getStatusBarHeight} to
|
<!-- The default height of the status bar used in {@link SystemBarUtils#getStatusBarHeight} to
|
||||||
calculate the status bar height. -->
|
calculate the status bar height. -->
|
||||||
<dimen name="status_bar_height_default">28dp</dimen>
|
<dimen name="status_bar_height_default">28dp</dimen>
|
||||||
|
|
@ -11,7 +14,7 @@
|
||||||
<!-- Height of the status bar in portrait.
|
<!-- Height of the status bar in portrait.
|
||||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
||||||
-->
|
-->
|
||||||
<dimen name="status_bar_height_portrait">130px</dimen>
|
<dimen name="status_bar_height_portrait">126px</dimen>
|
||||||
|
|
||||||
<!-- Height of the status bar in landscape.
|
<!-- Height of the status bar in landscape.
|
||||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
||||||
|
|
@ -20,7 +23,4 @@
|
||||||
|
|
||||||
<!-- Default radius of the software rounded corners. -->
|
<!-- Default radius of the software rounded corners. -->
|
||||||
<dimen name="rounded_corner_radius">95.0px</dimen>
|
<dimen name="rounded_corner_radius">95.0px</dimen>
|
||||||
|
|
||||||
<!-- Default paddings for content around the corners. -->
|
|
||||||
<dimen name="rounded_corner_content_padding">14dp</dimen>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@
|
||||||
DisplayCutout path will be rendered
|
DisplayCutout path will be rendered
|
||||||
-->
|
-->
|
||||||
<string name="config_frontBuiltInDisplayCutoutProtection" translatable="false">
|
<string name="config_frontBuiltInDisplayCutoutProtection" translatable="false">
|
||||||
M 498.5,65
|
M 503,63
|
||||||
a 41.5,41.5 0 1 0 83,0
|
a 37,37 0 1 0 74,0
|
||||||
a 41.5,41.5 0 1 0 -83,0
|
a 37,37 0 1 0 -74,0
|
||||||
Z
|
Z
|
||||||
</string>
|
</string>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,15 +4,6 @@
|
||||||
SPDX-License-Identifier: Apache-2.0
|
SPDX-License-Identifier: Apache-2.0
|
||||||
-->
|
-->
|
||||||
<resources>
|
<resources>
|
||||||
<!-- the padding on the start of the statusbar -->
|
|
||||||
<dimen name="status_bar_padding_start">20.0dip</dimen>
|
|
||||||
|
|
||||||
<!-- the padding on the end of the statusbar -->
|
|
||||||
<dimen name="status_bar_padding_end">7.0dip</dimen>
|
|
||||||
|
|
||||||
<!-- the padding on the top of the statusbar (usually 0) -->
|
|
||||||
<dimen name="status_bar_padding_top">20.0px</dimen>
|
|
||||||
|
|
||||||
<!-- Height of the status bar header bar when on Keyguard -->
|
<!-- Height of the status bar header bar when on Keyguard -->
|
||||||
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
|
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue