right now i'm using the latest version of the application and design support library.
compile 'com.android.support:appcompat-v7:23.2.1' compile 'com.android.support:design:23.2.1'
now i am facing some outdated
private void setupTabLayout() { mTabLayout = (TabLayout)findViewById(R.id.tab_layout); mAdapter = new MyPagerAdapter(getSupportFragmentManager()); mPager = (ViewPager)findViewById(R.id.pager); mPager.setAdapter(mAdapter); mTabLayout.setTabsFromPagerAdapter(mAdapter); mTabLayout.setupWithViewPager(mPager); }
does anyone know what i should use instead .. help me .. thanks
source share