简体   繁体   中英

how to maintain the Image Position and Size for all size of Devices in android?

I have layout like below image and I have designed using image view and image button for this images. while run for other devices its alignment and size is Varies:

  • so Which layout want to use
  • Size based on design or device based or
  • any technique is there for the responsive design

    在此处输入图片说明

**i'm using only on Landscape mode

There is a few ways to do this. The easiest way is to use androids grid layout and build it that way, this takes a bit of getting used to but it works well.

the 2nd way is to make alot of values folders and ajusting dimens in them: https://developer.android.com/guide/practices/screens_support.html

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