I have been using the layout-small, layout-large and such folders for multiscreen support but I was told to do with res-values-dimensions, but I am not sure how do it.
How can you have Multiscreen support with res-values-dimensions?
I have been using the layout-small, layout-large and such folders for multiscreen support but I was told to do with res-values-dimensions, but I am not sure how do it.
How can you have Multiscreen support with res-values-dimensions?
you might try the following, if it just concerns dimensions and sizes. I didn't try it, but the main idea should work
make for every wished resolution a dimension file
values.xml, values-hdpi.xml, values-xhdpi.xml,
inside each you can declare your values, eg:
< resources > < bool name="myboolvalue" > true < /bool > < dimen name="mydimenvalue" > dimension < /dimen > < /resources >
android:visibility="@bool/myboolvalue" android:textSize ="@dimen/mydimenvalue"