Closed wuh876 closed 2 years ago
老哥,咋解决的
需要给titleview设置点击
override fun getTitleView(context: Context?, index: Int): IPagerTitleView { return CommonPagerTitleView(requireContext()) .apply { // TODO: 标题设置 text = "test" setNormalColor(ColorUtils.getColor(R.color.base_colorGray)) setSelectedColor(ColorUtils.getColor(R.color.base_colorWhite)) setSelectedBackground(R.drawable.shape_round_select) setNormalBackground(R.drawable.shape_round_normal) setNormalSize(16) setSelectedSize(16) setOnClickListener { toast("哈哈$index") } } }
好像也不起作用😅
不弹toast吗?
没反应的
不会吧,点击事件都没了?
我写的有问题,fragment盖在上面了😂,解决了呢
发自Lans
在 2023年3月10日,17:42,wuh876 @.***> 写道:
不会吧,点击事件都没了?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
1.7.0 MagicIndicator 与viewpager2联用不能点击