Search in sources :

Example 1 with FixedIndicatorView

use of com.shizhefei.view.indicator.FixedIndicatorView in project ViewPagerIndicator by LuckyJayce.

the class SingleTabActivity method onCreate.

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_singletab);
    ScrollIndicatorView scrollIndicatorView = (ScrollIndicatorView) findViewById(R.id.singleTab_scrollIndicatorView);
    FixedIndicatorView fixedIndicatorView = (FixedIndicatorView) findViewById(R.id.singleTab_fixedIndicatorView);
    RecyclerIndicatorView recyclerIndicatorView = (RecyclerIndicatorView) findViewById(R.id.singleTab_reyclerIndicatorView);
    set(scrollIndicatorView, 16);
    set(fixedIndicatorView, 5);
    set(recyclerIndicatorView, 10000);
}
Also used : ScrollIndicatorView(com.shizhefei.view.indicator.ScrollIndicatorView) RecyclerIndicatorView(com.shizhefei.view.indicator.RecyclerIndicatorView) FixedIndicatorView(com.shizhefei.view.indicator.FixedIndicatorView)

Aggregations

FixedIndicatorView (com.shizhefei.view.indicator.FixedIndicatorView)1 RecyclerIndicatorView (com.shizhefei.view.indicator.RecyclerIndicatorView)1 ScrollIndicatorView (com.shizhefei.view.indicator.ScrollIndicatorView)1