Questionsforum
How do you solve compatibility issue in android ?

How do you solve compatibility issue in android ?



On 2014-06-12 07:59:52.0
Abakasha


  1. Use dp(density independent pixel) in place of px for view width and height.
  2. Create various density images with same name for drawable -mdpi, hdpi,xhdpi,xxhdpi .
  3. Use nine-patch images for better scaling without blur effect.
  4. Avoid hard coded width and height values, and always give width and height with respect to parent .
  5. Use fragments if you are targeting your application for both mobiles and tablets .


On 2014-06-15 07:00:31.0
Abakasha

copyright@questionsforum.net