Issue
I need to create a dimension that should be used only in the case that the system uses the ActionBar
height for the tablet.
Does anyone know when the system think it is on a tablet and then uses this specific ActionBar height?
Any hints are greatly appreciated.
Solution
There's no such thing as a 'tablet' from the system's point of view. It's just a larger screen device, and such we can use a larger height.
To put it simply, you shouldn't need to know when this happens. Just use the code from @sarbjot
To give you a full answer we currently use:
default (portrait): 56dp
landscape: 48dp
sw600dp: 64dp
Answered By - Chris Banes
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.