Multiple mobile screen support in Android
This blog about the multiple mobile screen support like Mobile screen small,large,tab etc.
I am explaining hear some points -
1)set support Screen in Manifest file
< suppor-screen android:smallScreen="true"
android:normalScreen="true"
android:largeScreen="true"
android:xlargeScreen="true"
android:anyDensity="true"
android:resizeble="true" />
2) provide various layouts for various screen density
Go to "res" -> "values" -> "dimens.xml"
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin"> 16dp </dimen>
<dimen name="txt">30dp</dimen>
copy same value folder n past on res folder with name
value-hdpi ,value-ldpi , value-mdpi , value-nodpi
chenge the size of dimens.xml file dimen name
change size to -
value-hdpi = 30dp
value-ldpi = 50dp
value-mdpi = 50dp
same for images we change the size and also past i mages diffrent size
(Hope So its good information)
-mahesh saraswat
This blog about the multiple mobile screen support like Mobile screen small,large,tab etc.
I am explaining hear some points -
1)set support Screen in Manifest file
< suppor-screen android:smallScreen="true"
android:normalScreen="true"
android:largeScreen="true"
android:xlargeScreen="true"
android:anyDensity="true"
android:resizeble="true" />
2) provide various layouts for various screen density
Go to "res" -> "values" -> "dimens.xml"
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin"> 16dp </dimen>
<dimen name="txt">30dp</dimen>
copy same value folder n past on res folder with name
value-hdpi ,value-ldpi , value-mdpi , value-nodpi
chenge the size of dimens.xml file dimen name
change size to -
value-hdpi = 30dp
value-ldpi = 50dp
value-mdpi = 50dp
same for images we change the size and also past i mages diffrent size
(Hope So its good information)
-mahesh saraswat