Android Device compatibility issue in Normal Device

51 Views Asked by At

i am suffering from last few days but i am not getting any perfect answer for that android developer website i

and apart from that i am also study lot of website but most of the website say's use dimen and used it for small normal large and x-large but it is not giving me the perfect solution because most of the device which i am testing they all target normal dime such like that device start from 3.7 to 5 inch and because of that my card get moved up according to device i want the perfect appearance on each device there is a image attached to it t is basically card view

actually i want the perfect apperance on each device i found one method which is work fine to make a dimens xml according to the dimension of screen but it is not reliable i have to make more then 25 xml and if another device will come i have to make for these also this is image Url t is basically card view

1

There are 1 best solutions below

0
Coas Mckey On

If you want to support all devices then I think under my opinion You need make a check up on several points. These points are given below:

  1. first you should make it sure that you are using right sizes in all drawable bucket. I am saying this because I think You are looking it perfect in some device but not looking good in other devices.
  2. Do not make multiple xmls it is deprecated.
  3. TO give margins for all devices you need to make different values folder or Dimens folder for different devices.
  4. This is new way of supporting multiple devices , multiple xml is deprecated.

Here I am posting 2 links , this and this , check them out. I think that this is good for you to learn , just give it a try. And Up vote if this helps.