Different size for the cells

Question!

I am making an application everything was fine until I worked on 5 -inch screen. But when I wanted to check how the application looks at the screen 3 inch. It was all terribly enlarged. I wish everything was the same on both screens. I can do that the system will automatically detect the size of the device and have it perform ? Please help.

By : snaperdak


Answers

You Layout folder should be like this.

res/layout/my_layout.xml             // layout for normal screen size ("default")
res/layout-small/my_layout.xml       // layout for small screen size
res/layout-large/my_layout.xml       // layout for large screen size
res/layout-xlarge/my_layout.xml      // layout for extra large screen size
res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation

In Manifest add support-screens

By : Yugesh


This video can help you solving your question :)
By: admin