I'm working on app,in which there are tests for exams.The layout is easy to learn: A simple TextView for Question. below Question there is radioGroup with four radio buttons for alternative answers.below radiogroup there is button for next question. When I test it on Nexus 5 with resolution 1080:1920 it works fine. But i tried and tested it on another emulator with smaller resolution.the problem is that there are some questions with long alternative answers and the radiogroup fit the whole screen so the next button is hiden. I tried small font for the radio buttons but it does not work. What I want is any ideas how to support all screens resolutions. I want to do it without using scrollView.Any ideas?
Asked
Active
Viewed 548 times
0
-
Possible duplicate of [how to set android layout to support all screen sizes?](http://stackoverflow.com/questions/9476662/how-to-set-android-layout-to-support-all-screen-sizes) – pRaNaY Feb 06 '16 at 14:55
2 Answers
0
You basically needs to set your app UI based on every screen class
click on the highlighted button/tab there u will find set screen size and just set sizes and you will be done

Rahim Khalid
- 469
- 6
- 15
0
You can add a weightsum to your principal layout and add weight for every element.
Ex : if you put in the main layout the weight sum at 100, you can put 40 weight for your text, 40 for your radio group and 20 for the continue button, it's like percentage.
This will keep the size for every device

Vodet
- 1,491
- 1
- 18
- 36