I have made an app using Xamarin.Android which has various views like, Textviews,Editexts,Spinners,Table layout etc. When i was making this app, i had just started android development so didn't pay as such of attention to Screen Sizes and only targeted the app for my personal mobile. Now i want my app to support from atleast 5 inch screen phones all the way to tablets. I read many solutions for Screen Sizes but can't decide which one is the most ideal to go forward with. What is the most ideal solution for my scenario?
Asked
Active
Viewed 1,930 times
-1
-
https://stackoverflow.com/questions/9476662/how-to-set-android-layout-to-support-all-screen-sizes – AskNilesh Sep 25 '18 at 06:52
-
Read [Support different screen sizes](https://developer.android.com/training/multiscreen/screensizes) – AskNilesh Sep 25 '18 at 06:52
-
Refer this [link](https://stackoverflow.com/a/51875376/5995648) – Arbaz.in Sep 25 '18 at 11:22
1 Answers
1
Read supports-screens
If your application does not work well when resized to fit different screen sizes, you can use the attributes of the element to control whether your application should be distributed to smaller screens or have its UI scaled up ("zoomed") to fit larger screens using the system's screen compatibility mode.
<supports-screens
android:resizeable="true"
android:smallScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:normalScreens="true"
android:anyDensity="true"/>
For more info read Screen compatibility

IntelliJ Amiya
- 74,896
- 15
- 165
- 198