Skip to content

Commit 54c58f0

Browse files
authored
Update apis.rst
1 parent c2a0778 commit 54c58f0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

doc/source/apis.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ Working on Android
55
This page gives details on accessing Android APIs and managing other
66
interactions on Android.
77

8+
Handling system bars and Edge-to-Edge enforcement
9+
-------------------------------------------------
10+
11+
**Egde-to-Edge is enforced on all android apis >=35 by default i.e. Android 15 and above.**
12+
13+
You can control the overall layout and system bars appearance in following ways::
14+
15+
from android.utils import update_system_ui
16+
17+
update_system_ui(
18+
"#0f62fe", # status_bar_color: hex color code or rgba (tuple or list) values
19+
[0.059, 0.384, 0.996, 1.000], # navigation_bar_color: hex color code or rgba (tuple or list) values
20+
"Light", # icon_style: "Dark" means dark icons will be drawn, "Light" means light icons will be drawn, Literal["Dark", or "Light"]
21+
True, # pad_status: Adds a padding to top of content_view, Will take effect on Android 15+
22+
True, # pad_nav: Adds a padding to bottom of content_view, Will take effect on Android 15+
23+
)
24+
825
Storage paths
926
-------------
1027

0 commit comments

Comments
 (0)