Unanswered: How to change the views for different screen resolution??
Unanswered: How to change the views for different screen resolution??
Hi,
I am developing one application using sencha touch 2. In the app, i am using some images as button and some default buttons also. Even some other components are also there. The problem is, when i am testing it for different android devices, the UI is not coming properly. Suppose when i am testing for Samsung S2, it is fitting in the screen. But while testing for 480 * 360 screens, it is going out of the screens. How can i handle the different screen sizes for android?? Is there any sample code??
You shouldn't use fixed heights but use flex heights and layouts. If you have padding : 10px try with padding : 5em; or whatever works, em is a flex height depending on line-height and resolution, it's not fixed like px. You can also use percents. Also hbox/vbox layouts, card, fit all will work without fixed heights.