Java Code Examples for android.app.ActionBar.Tab#getText()

The following examples show how to use android.app.ActionBar.Tab#getText() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MyHomePageFRAGMENT.java    From ALLGO with Apache License 2.0 5 votes vote down vote up
@Override
public void onTabSelected(Tab tab, FragmentTransaction ft) {
	// TODO 自动生成的方法存根
	String text = (String) tab.getText() ;
	if(text.equals("我组织的")) {
		mViewPager0.setCurrentItem(0);
	}
	if(text.equals("我参加的")) {
		mViewPager0.setCurrentItem(1);
	}
}
 
Example 2
Source File: AllEventFRAGMENT.java    From ALLGO with Apache License 2.0 5 votes vote down vote up
@Override
public void onTabSelected(Tab tab, FragmentTransaction ft) {
	// TODO 自动生成的方法存根
	String text = (String) tab.getText() ;
	if(text.equals("活动广场")) {
		mViewPager1.setCurrentItem(0);
	}
	if(text.equals("好友的活动")) {
		mViewPager1.setCurrentItem(1);
	}
}
 
Example 3
Source File: ContactFRAGMENT.java    From ALLGO with Apache License 2.0 5 votes vote down vote up
@Override
public void onTabSelected(Tab tab, FragmentTransaction ft) {
	// TODO 自动生成的方法存根
	String text = (String) tab.getText() ;
	if(text.equals("联系人")) {
		mViewPager2.setCurrentItem(0);
	}
	if(text.equals("会话")) {
		mViewPager2.setCurrentItem(1);
	}
}