0
我有一個用作ViewPager適配器的sectionsPagerAdapter。使用SectionsPagerAdapter android
mSectionsPagerAdapter = new SectionsPagerAdapter(
getSupportFragmentManager());
// Set up the ViewPager with the sections adapter.
mViewPager = (ViewPager) findViewById(R.id.pager);
mViewPager.setAdapter(mSectionsPagerAdapter);
我有3個片段,我想在單擊按鈕時在兩個片段之間切換?
我已經通過鏈接,我已經完成了我的研究並獲得了輸出。謝謝..:) –