Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default height on Androids TabLayout

Seems like something that should be easy to find, but it's harder than I thought. What is the default height on the TabLayout in DIPs?

like image 806
ninjachippie Avatar asked Nov 12 '15 11:11

ninjachippie


People also ask

What is a TabLayout in Android?

In Android TabLayout is a new element introduced in Design Support library. It provides horizontal layout to display tabs on the screen. We can display more screens in a single screen using tabs. We can quickly swipe between the tabs.

What is TabItem Android studio?

TabItem is a special 'view' which allows you to declare tab items for a TabLayout within a layout. This view is not actually added to TabLayout, it is just a dummy which allows setting of a tab items's text, icon and custom layout.


1 Answers

Material Design guidelines state that this height equals 48dp when You have text or image, and 72dp when You have image and text.

like image 181
DreamOnJava Avatar answered Oct 18 '22 09:10

DreamOnJava