-2

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.

Andres Cárdenas
  • 720
  • 1
  • 5
  • 26
Marc_Bob
  • 119
  • 7
  • This answers your question [Determine if the device is a smartphone or tablet?](http://stackoverflow.com/questions/9279111/determine-if-the-device-is-a-smartphone-or-tablet) – michal.z Dec 04 '14 at 10:23

1 Answers1

4

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
Chris Banes
  • 31,763
  • 16
  • 59
  • 50