Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to know default TabLayout height from XML

Tags:

android

We can know action bar / toolbar height from XML, via ?attr/actionBarSize

Is there a similar thingy for TabLayout height? Something like ?attr/tabLayoutSize

like image 574
Cheok Yan Cheng Avatar asked Sep 14 '25 19:09

Cheok Yan Cheng


1 Answers

As far as I know, NO.

But the google design specs says that it the height of tabs should be 48dp or 72dp in case of icon + text in a tab

https://www.google.com/design/spec/components/tabs.html#tabs-specs

like image 87
sockeqwe Avatar answered Sep 16 '25 08:09

sockeqwe