看起来应该很容易找到,但它比我想象的要难。TabLayout的默认高度是多少?
发布于 2015-11-12 19:44:39
Material Design guidelines声明,当你有文本或图像时,这个高度等于48dp,当你有图像和文本时,这个高度等于72dp。
发布于 2019-05-27 02:14:34
它的高度是"?attr/tabIndicatorHeight"
例如,您可以在xml文件中为另一个视图使用此值,如:
android:layout_marginBottom="?attr/tabIndicatorHeight"
而且它在所有设备上看起来都没问题。
https://stackoverflow.com/questions/33670481
复制相似问题