beeware/toga

Title and status bar layout broken when targeting Android SDK 36

Opened this issue · 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

Working slow

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 beeware/briefcase-android-gradle-template#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.