Forum Discussion

tscholze's avatar
tscholze
Iron Contributor
Apr 09, 2022
Solved

UI question on foldable: How to display a small amount of content on top of an extended canvas?

Hi team,

during my current pet project I learn, that my UI / UX understanding and how thing should work under Android is still not competitive (and useful) that's why I ask you, the awesome Surface Duo community.

 

You see my following app screenshot. Its foldable emulator because there is sadly no M1 Surface Duo emulator, yet.

 

I use the navigation rail und the left to trigger some actions. But all pages - besides the "Map" are quite small - on the huge Surface Duo displays.

 

For this task I assume that its a Surface Duo, spanned displays and in Landscape mode (as it always is).

 

That's why I do not want a page transition to another view, I thought I use a "BottomSheetScaffold" but a little bot of the sheet is always visible in "collapsed" mode.

 

Another Idea was a simple "Drawer". But the drawer should be on the right screen and not 90% width of display, that's why this idea was always a fail.

 

My latest idea was a "Sheet" that moves from the bottom up - like a BottomSheet but not edge to edge and not visible if not active - if the user taps at e.g. "About". The sheet should have some elevation, maybe a close button, etc.

 

What do you think? I had a look at the samples but I was not able to find such scenario, maybe I overlooked something.

 

Thanks for your help and keep up with your amazing work,

 

- Tobi

 

 

 

  • Hi Tobias,

     

    Thanks for your question!

     

    To be honest, I also am not an expert in Android components/Material Design, but from what you have described, it sounds like a Sheet would fit your needs. We do use a custom component similar to a BottomSheet/Drawer in the NavigationRail Compose sample, but like you mentioned, some content is still shown when the component is collapsed, so that wouldn't fit your exact use case.

6 Replies

Resources