简体   繁体   中英

Android Manage view sizes on different screens

I want to make my view Responsive, look at following images.

在此输入图像描述

在此输入图像描述

1st Image is what it should ideally look. But when I change the screen size, it changes the size and alignment. I want fixed size views over all screens.

You should follow Step by Step approach .

Android runs on a variety of devices that offer different screen sizes and densities. For applications, the Android system provides a consistent development environment across devices and handles most of the work to adjust each application's user interface to the screen on which it is displayed.

Read Supporting Multiple Screens .

To optimize your user experience on different screen sizes, you should create a unique layout XML file for each screen size you want to support.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM