How do I remove the selected tab indicator from the TabWidget?

后端 未结 17 1307
猫巷女王i
猫巷女王i 2020-12-09 02:19

Here\'s what I\'d like to remove :

\"enter

How do I replace the indicator show

17条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-09 02:50

    Use tabLayout.setSelectedTabIndicator(0).

    tabLayout.setSelectedTabIndicatorHeight(0) is now deprecated and tabLayout.setSelectedTabIndicatorColor(Color.TRANSPARENT) won't perform as well because it uses transparency.

提交回复
热议问题