sdm710-common: Add notch cutout config
This commit is contained in:
parent
d281417bad
commit
95cabe4133
1 changed files with 20 additions and 0 deletions
|
@ -386,4 +386,24 @@
|
||||||
-->
|
-->
|
||||||
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
|
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
|
||||||
|
|
||||||
|
<!-- The bounding path of the cutout region of the main built-in display.
|
||||||
|
Must either be empty if there is no cutout region, or a string that is parsable by
|
||||||
|
{@link android.util.PathParser}.
|
||||||
|
The path is assumed to be specified in display coordinates with pixel units and in
|
||||||
|
the display's native orientation, with the origin of the coordinate system at the
|
||||||
|
center top of the display.
|
||||||
|
To facilitate writing device-independent emulation overlays, the marker `@dp` can be
|
||||||
|
appended after the path string to interpret coordinates in dp instead of px units.
|
||||||
|
Note that a physical cutout should be configured in pixels for the best results.
|
||||||
|
Example for a 10px x 10px square top-center cutout:
|
||||||
|
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z</string>
|
||||||
|
Example for a 10dp x 10dp square top-center cutout:
|
||||||
|
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z @dp</string>
|
||||||
|
@see https://www.w3.org/TR/SVG/paths.html#PathData
|
||||||
|
-->
|
||||||
|
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -80,0 L -80,80 L 80,80 L 80,0 Z</string>
|
||||||
|
|
||||||
|
<!-- Height of the status bar -->
|
||||||
|
<dimen name="status_bar_height_portrait">88.0px</dimen>
|
||||||
|
<dimen name="status_bar_height_landscape">28.0dp</dimen>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue