File tree Expand file tree Collapse file tree
sample/src/main/java/com/huewu/pla/sample Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121import com .huewu .pla .lib .MultiColumnListView ;
2222import com .huewu .pla .sample .view .SlidingTabLayout ;
2323
24- public class SampleActivity extends ActionBarActivity implements ActionBar . TabListener {
24+ public class SampleActivity extends ActionBarActivity {
2525 private SectionsPagerAdapter mSectionsPagerAdapter ;
2626 private ViewPager mViewPager ;
2727
@@ -43,20 +43,6 @@ protected void onCreate(Bundle savedInstanceState) {
4343 tabLayout .setViewPager (mViewPager );
4444 }
4545
46- @ Override
47- public void onTabSelected (ActionBar .Tab tab , FragmentTransaction fragmentTransaction ) {
48- mViewPager .setCurrentItem (tab .getPosition ());
49- }
50-
51- @ Override
52- public void onTabUnselected (ActionBar .Tab tab , FragmentTransaction fragmentTransaction ) {
53- }
54-
55- @ Override
56- public void onTabReselected (ActionBar .Tab tab , FragmentTransaction fragmentTransaction ) {
57- }
58-
59-
6046 public class SectionsPagerAdapter extends FragmentPagerAdapter {
6147
6248 public SectionsPagerAdapter (FragmentManager fm ) {
You can’t perform that action at this time.
0 commit comments