Java Code Examples for com.actionbarsherlock.app.ActionBar#TabListener
The following examples show how to use
com.actionbarsherlock.app.ActionBar#TabListener .
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: ActionBarImpl.java From zen4android with MIT License | 6 votes |
private void configureTab(Tab tab, int position) { final TabImpl tabi = (TabImpl) tab; final ActionBar.TabListener callback = tabi.getCallback(); if (callback == null) { throw new IllegalStateException("Action Bar Tab must have a Callback"); } tabi.setPosition(position); mTabs.add(position, tabi); final int count = mTabs.size(); for (int i = position + 1; i < count; i++) { mTabs.get(i).setPosition(i); } }
Example 2
Source File: ActionBarImpl.java From zhangshangwuda with Apache License 2.0 | 6 votes |
private void configureTab(Tab tab, int position) { final TabImpl tabi = (TabImpl) tab; final ActionBar.TabListener callback = tabi.getCallback(); if (callback == null) { throw new IllegalStateException("Action Bar Tab must have a Callback"); } tabi.setPosition(position); mTabs.add(position, tabi); final int count = mTabs.size(); for (int i = position + 1; i < count; i++) { mTabs.get(i).setPosition(i); } }
Example 3
Source File: ActionBarImpl.java From android-apps with MIT License | 6 votes |
private void configureTab(Tab tab, int position) { final TabImpl tabi = (TabImpl) tab; final ActionBar.TabListener callback = tabi.getCallback(); if (callback == null) { throw new IllegalStateException("Action Bar Tab must have a Callback"); } tabi.setPosition(position); mTabs.add(position, tabi); final int count = mTabs.size(); for (int i = position + 1; i < count; i++) { mTabs.get(i).setPosition(i); } }
Example 4
Source File: ActionBarImpl.java From Libraries-for-Android-Developers with MIT License | 6 votes |
private void configureTab(Tab tab, int position) { final TabImpl tabi = (TabImpl) tab; final ActionBar.TabListener callback = tabi.getCallback(); if (callback == null) { throw new IllegalStateException("Action Bar Tab must have a Callback"); } tabi.setPosition(position); mTabs.add(position, tabi); final int count = mTabs.size(); for (int i = position + 1; i < count; i++) { mTabs.get(i).setPosition(i); } }
Example 5
Source File: XmlSectionReader.java From grilledui with BSD 2-Clause "Simplified" License | 5 votes |
public static SectionAdapter load(FragmentManager fm, ActionBar actionBar, ActionBar.TabListener tabListener, Context context, XmlPullParser xml) throws XmlPullParserException, IOException, ClassNotFoundException, InstantiationException, IllegalAccessException { SectionAdapter adapter = new SectionAdapter(fm, actionBar, tabListener); while(canContinue(xml, adapter, context)) { xml.next(); } return(adapter); }
Example 6
Source File: XmlSectionReader.java From grilledui with BSD 2-Clause "Simplified" License | 5 votes |
public static SectionAdapter loadSilent(FragmentManager fm, ActionBar actionBar, ActionBar.TabListener tabListener, Context context, XmlPullParser xml) { try { return(load(fm, actionBar, tabListener, context, xml)); } catch(Exception e) { e.printStackTrace(); return(null); } }
Example 7
Source File: ActionBarImpl.java From zhangshangwuda with Apache License 2.0 | 4 votes |
@Override public Tab setTabListener(ActionBar.TabListener callback) { mCallback = callback; return this; }
Example 8
Source File: XmlSectionReader.java From grilledui with BSD 2-Clause "Simplified" License | 4 votes |
public static SectionAdapter load(FragmentManager fm, ActionBar actionBar, ActionBar.TabListener tabListener, Context context, int resId) throws XmlPullParserException, IOException, NotFoundException, ClassNotFoundException, InstantiationException, IllegalAccessException { return(load(fm, actionBar, tabListener, context, context.getResources().getXml(resId))); }
Example 9
Source File: XmlSectionReader.java From grilledui with BSD 2-Clause "Simplified" License | 4 votes |
public static SectionAdapter loadSilent(FragmentManager fm, ActionBar actionBar, ActionBar.TabListener tabListener, Context context, int resId) { return(loadSilent(fm, actionBar, tabListener, context, context.getResources().getXml(resId))); }
Example 10
Source File: ActionBarImpl.java From Libraries-for-Android-Developers with MIT License | 4 votes |
@Override public Tab setTabListener(ActionBar.TabListener callback) { mCallback = callback; return this; }
Example 11
Source File: ActionBarImpl.java From Libraries-for-Android-Developers with MIT License | 4 votes |
public ActionBar.TabListener getCallback() { return mCallback; }
Example 12
Source File: ActionBarImpl.java From zhangshangwuda with Apache License 2.0 | 4 votes |
public ActionBar.TabListener getCallback() { return mCallback; }
Example 13
Source File: ActionBarImpl.java From zen4android with MIT License | 4 votes |
@Override public Tab setTabListener(ActionBar.TabListener callback) { mCallback = callback; return this; }
Example 14
Source File: ActionBarImpl.java From zen4android with MIT License | 4 votes |
public ActionBar.TabListener getCallback() { return mCallback; }
Example 15
Source File: ActionBarImpl.java From android-apps with MIT License | 4 votes |
@Override public Tab setTabListener(ActionBar.TabListener callback) { mCallback = callback; return this; }
Example 16
Source File: ActionBarImpl.java From android-apps with MIT License | 4 votes |
public ActionBar.TabListener getCallback() { return mCallback; }
Example 17
Source File: SectionAdapter.java From grilledui with BSD 2-Clause "Simplified" License | 2 votes |
/** * This constructor should be used when using tabs. * * @param fm FragmentManager as required by FragmentPagerAdapter * @param actionBar ActionBar of current activity * @param tabListener object which will listen for tab events */ public SectionAdapter(FragmentManager fm, ActionBar actionBar, ActionBar.TabListener tabListener) { super(fm); this.actionBar = actionBar; this.tabListener = tabListener; }