-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.

1

1 Answer 1

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 
Sign up to request clarification or add additional context in comments.

1 Comment

Ok the sw600dp was what I was looking for. Thnaks a lot.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.