use of com.moshx.indicators.tab.effect.GreyscaleIconicTabsEffect in project AndroidIndicators by MoshDev.
the class MainActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
setTitle(null);
ViewPager mViewPager = (ViewPager) findViewById(R.id.viewPager);
mViewPager.setAdapter(new MyAdapter(getSupportFragmentManager()));
final ViewPagerObserver observer = new ViewPagerObserver(mViewPager);
titleIndicator = (TitleIndicator) findViewById(R.id.titleIndicator);
observer.addObservableView(titleIndicator);
titleIndicator.setToolBar(toolbar);
IconicTabsView iconicTabsView = (IconicTabsView) findViewById(R.id.iconicTabsView);
// iconicTabsView.setIconicTabsEffect(new FadeIconicTabsEffect());
iconicTabsView.setIconicTabsEffect(new GreyscaleIconicTabsEffect());
// iconicTabsView.setIconicTabsEffect(new ArgbIconicTabsEffect(0xFF010101, Color.RED));
observer.addObservableView(iconicTabsView);
ArgbEvaluator argbEvaluator;
}
Aggregations