VerticalTabLayout icon indicating copy to clipboard operation
VerticalTabLayout copied to clipboard

如果外层容器是ConstraintLayout的情况TabLayout会显示不出来

Open jackping opened this issue 8 years ago • 0 comments

原因:addTab的时候会把LayoutParams转换为LinearLayoutParams 方案:外层容器换为LinearLayout可以解决 触发条件:TabLayout放在Fragment中,画面层次为ConstraintLayout->VerticalTabLayout Fragment放在外层Activity中,Activity画面层次为ConstraintLayout->FrameLayout FrameLayout中会加载Fragment 这样的页面,会导致无法显示VerticalTabLayout 因为现在ConstraintLayout用的应该还是挺多的,你有空的时候可以试试

jackping avatar Jul 20 '17 07:07 jackping