Back to project page ParticipationManager.
The source code is released under:
GNU General Public License
If you think the Android project ParticipationManager listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.qdev.tabtest; // ww w . j a v a 2 s . co m import android.app.ActionBar; import android.app.Fragment; import android.app.FragmentTransaction; public class MyTabListener implements ActionBar.TabListener { Fragment fragment; public MyTabListener(Fragment fragment) { this.fragment = fragment; } public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) { ft.replace(R.id.fragment_container, fragment); } public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) { ft.remove(fragment); } public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) { // nothing done here } }