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?
答案 0 :(得分:31)
Material Design guidelines state that this height equals 48dp when You have text or image, and 72dp when You have image and text.
答案 1 :(得分:0)
其高度为“?attr / tabIndicatorHeight”
例如 您可以在xml文件中将此值用于其他视图,例如:
android:layout_marginBottom="?attr/tabIndicatorHeight"
在所有设备上都可以。