Android TutorialsNo Comments

default thumbnail
251 views.

Normally when we create xml files those files only suitable for particular resolution, but if your xml files need to suitable for all resolutions we need right some more extra code like below.

In your res folder

  1. In values folder dimens.xml replace with below coding

  1. ¬†After that create new folder with “values-hdpi ” name and create one more xml ‘dimens.xml ‘ replace with below coding
  2. After that create new folder with “values-sw480dp ” name and create one more xml ‘dimens.xml ‘ replace with below coding