I made an Android application, I set the layout so that it works properly on the Android Lollipop 5.1 API 22 emulator, but after I run it on a higher emulator Android Oreo 8.1 API 27, some button out of the screen, how to fix it? thanks
Different devices have different screen sizes. If you put too many controls there the latter ones may be located outside of the window.
We could use a scroll view wrapping the layout. Therefore, the layout could be scrolled to display all the content if the content size is larger than the screen size.
I am sorry @LandLu , I make the same app.
When I build in Android Lollipop 5.1 API 22, the app content is working properly. But, when I build in Android Oreo 8.1 API 27, some controls located outside of the window.
Is there a way for my content to adapt to all types of the screens automatically?
It depends on how you layout the controls. There's not such an automatic approach to fit the screen.
The best solution is to consume a scroll view to wrap the root layout.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies