toga icon indicating copy to clipboard operation
toga copied to clipboard

Title and status bar layout broken when targeting Android SDK 36

Open InsaneSharpness opened this issue 5 months ago • 2 comments

Describe the bug

Toga app built using using Beeware - targetting Android 36 (or 35) and running on devices with Android v16

  • The main window's contents are overalapped by the app title bar
  • The app's header theme (top edge) has also lost its colours.

Steps to reproduce

  1. Change the project's pyproject.toml, add/update the android section to have target_os_version = "36"
  2. Install Android v16 on device (or android simulation AVD with SDK = 36)
  3. Re-generate project/build app and deploy on Android device/simulator
  4. Launch App & see examples below.

Screenshots

Image Image Image

Environment

  • Operating System: Windows 11
  • Python version: 3.12.7
  • Software versions:
    • Briefcase: 0.3.24
    • Toga: 0.5.2
    • Also happens with previous versions of Briefcase/Toga. So related to SDK version

InsaneSharpness avatar Jul 13 '25 18:07 InsaneSharpness

Working slow

dmrazzy avatar Jul 19 '25 23:07 dmrazzy

This is what Android calls "edge to edge" layout. You can opt out of it when targeting API level 35, which I've done in https://github.com/beeware/briefcase-android-gradle-template/pull/104. But we'll need to handle it properly before apps are required to target API level 36 next year. So let's leave this issue open.

mhsmith avatar Jul 25 '25 19:07 mhsmith