Hi guys,
I am developing an application for both tablets as well as mobile,Till now every thing is fine to me. Here is my problem,I can’t get the height and width of Samsung Galaxy Tab?
- I want what is configuration for 7 inch tablet i have declared as
config.orientation == Configuration.SCREENLAYOUT_SIZE_LARGE. It is not working for me. -
if else how i need to declare this.
-
here i have declared i n the layout as layout-large it’s working for me, but i am having both design for landscape and protrait.
If you need the size classification — ”small”, “normal”, “large”, “xlarge” — use the Configuration class:
If you need check for a orientation then you can use:
I don’t really get it, why you need check for a screen size, because if you add your layouts in different layout folders, then Android automatically selects most suitable depending on screen size.