Is this possible to determine the height of the title bar I mean the the default height of the Title Bar?
In material design, default height for title bar is 56 pixels. (+shadow)
2 Likes
On my Samsung S8 it’s 240px
I think he meant 56dp
/Boban
3 Likes
In your case
24dp status bar + 56dp action bar × 3 density = 240px
/Boban
3 Likes
to say it completely right:
(24dp status bar + 56dp action bar) × 3 density = 240px
Sorry, but some brackets are missing, I remember the slaps of some math teachers.
1 Like
Same here, maybe that’s why I’m still ignore it
Btw, the calculation is only for Android 6+, below 6 status bar is 25dp.
And in landscape action bar is 48dp
/Boban
2 Likes