dubai: overlay: Add proper cutout and adjust statusbar dimensions
Change-Id: I66df4d4d77a72df09e095c271501ba55df963687
This commit is contained in:
parent
36098ce609
commit
6b43757e7c
4 changed files with 65 additions and 12 deletions
|
|
@ -134,13 +134,32 @@
|
|||
|
||||
@see https://www.w3.org/TR/SVG/paths.html#PathData
|
||||
-->
|
||||
<string translatable="false" name="config_mainBuiltInDisplayCutout">
|
||||
M -35,0
|
||||
L 35,0
|
||||
L 35,105
|
||||
L -35,105
|
||||
Z
|
||||
</string>
|
||||
<string name="config_mainBuiltInDisplayCutout" translatable="false">
|
||||
M 503.5,65
|
||||
a 36.5,36.5 0 1 0 73,0
|
||||
a 36.5,36.5 0 1 0 -73,0
|
||||
Z
|
||||
@left
|
||||
</string>
|
||||
|
||||
<!-- Like config_mainBuiltInDisplayCutout, but this path is used to report the
|
||||
one single bounding rect per device edge to the app via
|
||||
{@link DisplayCutout#getBoundingRect}. Note that this path should try to match the visual
|
||||
appearance of the cutout as much as possible, and may be smaller than
|
||||
config_mainBuiltInDisplayCutout
|
||||
-->
|
||||
<string name="config_mainBuiltInDisplayCutoutRectApproximation" translatable="false">
|
||||
M -36.5 0
|
||||
L -36.5 130
|
||||
L 36.5 130
|
||||
L 36.5 0
|
||||
Z
|
||||
</string>
|
||||
|
||||
<!-- Whether the display cutout region of the main built-in display should be forced to
|
||||
black in software (to avoid aliasing or emulate a cutout that is not physically existent).
|
||||
-->
|
||||
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
|
||||
|
||||
<!-- Indicate whether to allow the device to suspend when the screen is off
|
||||
due to the proximity sensor. This resource should only be set to true
|
||||
|
|
|
|||
|
|
@ -8,20 +8,20 @@
|
|||
<dimen name="rounded_corner_radius">95.0px</dimen>
|
||||
|
||||
<!-- Default paddings for content around the corners. -->
|
||||
<dimen name="rounded_corner_content_padding">4px</dimen>
|
||||
<dimen name="rounded_corner_content_padding">14dp</dimen>
|
||||
|
||||
<!-- The default height of the status bar used in {@link SystemBarUtils#getStatusBarHeight} to
|
||||
calculate the status bar height. -->
|
||||
<dimen name="status_bar_height_default">105px</dimen>
|
||||
<dimen name="status_bar_height_default">28dp</dimen>
|
||||
|
||||
<!-- Height of the status bar in portrait. The height should be
|
||||
Max((status bar content height + waterfall top size), top cutout size) -->
|
||||
<dimen name="status_bar_height_portrait">@dimen/status_bar_height_default</dimen>
|
||||
<dimen name="status_bar_height_portrait">130px</dimen>
|
||||
|
||||
<!-- Height of the status bar in landscape.
|
||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
||||
-->
|
||||
<dimen name="status_bar_height_landscape">14dip</dimen>
|
||||
<dimen name="status_bar_height_landscape">28dp</dimen>
|
||||
|
||||
<!-- Height of area above QQS where battery/time go.
|
||||
Do not read this dimen directly. Use {@link SystemBarUtils#getQuickQsOffsetHeight} instead.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue