hackware1993 / MagicIndicator

A powerful, customizable and extensible ViewPager indicator framework. As the best alternative of ViewPagerIndicator, TabLayout and PagerSlidingTabStrip —— 强大、可定制、易扩展的 ViewPager 指示器框架。是ViewPagerIndicator、TabLayout、PagerSlidingTabStrip的最佳替代品。支持角标,更支持在非ViewPager场景下使用(使用hide()、show()切换Fragment或使用setVisibility切换FrameLayout里的View等),http://www.jianshu.com/p/f3022211821c
9.74k stars 1.55k forks source link

单独使用 #153

Open whosmyqueen opened 5 years ago

whosmyqueen commented 5 years ago

请问单独使用不绑定viewpager怎么用不了,如果可以,怎么用

minorlai commented 4 years ago

如何单独使用?

Dullyoung commented 4 years ago

FragmentContainerHelper helper = new FragmentContainerHelper(); helper.attachMagicIndicator(mMiDetail); 。。。 cornerMarkPagerTitleView.setOnClickListener(v -> helper.handlePageSelected(index, true) );