Android Question Screen too bg

DIYRicey

Member
I have an app that shows numbers, lines, etc on a canvas initialised to the activity. There is a title bar that I want to show. I have set #FullScreen to false and #IncludeTitle to true. Everything works fine on an Android 11 phone I have; the top of the drawing area is just below the title bar and the bottom is just above the navigation bar. However, on an Android 16 phone the top of the drawing area is at the very top of the physical screen and the bottom at the bottom. This means that the top few rows of information are hidden behind the title bar and status bar, and the bottom is behind the navigation bar.

How do I get the activity screen to fit between the title and navigation bars?
 
Top