public abstract class TabSwipeFragment extends Fragment implements ITabSwipe<TabSwipeFragment.TabInfo>
| Modifier and Type | Class and Description |
|---|---|
static class |
TabSwipeFragment.TabInfo |
Fragment.InstantiationException, Fragment.SavedStateITabSwipe.OnTabSelectedListenerIAddonAttacher.AddonCallback<V>, IAddonAttacher.AttachException| Constructor and Description |
|---|
TabSwipeFragment() |
| Modifier and Type | Method and Description |
|---|---|
TabSwipeFragment.TabInfo |
addTab(java.lang.CharSequence title,
java.lang.Class<? extends Fragment> fragmentClass) |
TabSwipeFragment.TabInfo |
addTab(java.lang.CharSequence title,
java.lang.Class<? extends Fragment> fragmentClass,
android.os.Bundle fragmentArguments) |
TabSwipeFragment.TabInfo |
addTab(int title,
java.lang.Class<? extends Fragment> fragmentClass) |
TabSwipeFragment.TabInfo |
addTab(int title,
java.lang.Class<? extends Fragment> fragmentClass,
android.os.Bundle fragmentArguments) |
TabSwipeFragment.TabInfo |
addTab(TabSwipeFragment.TabInfo tabInfo) |
TabSwipeFragment.TabInfo |
addTab(TabSwipeFragment.TabInfo tabInfo,
int position) |
ITabSwipe.OnTabSelectedListener |
getOnTabSelectedListener() |
boolean |
isSmoothScroll() |
protected ActionBar.Tab |
makeActionBarTab(TabSwipeFragment.TabInfo tabInfo) |
android.view.View |
onCreateView(LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onDestroyView() |
protected abstract void |
onHandleTabs()
Add your tabs here
|
void |
onTabSelected(int position) |
void |
onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState) |
void |
reloadTabs() |
void |
removeAllTabs() |
TabSwipeFragment.TabInfo |
removeTab(int position) |
TabSwipeFragment.TabInfo |
removeTab(TabSwipeFragment.TabInfo tabInfo) |
void |
setCurrentTab(int position) |
void |
setCustomLayout(int customLayout)
If you want custom layout for this activity - call this method before
super.onCreate
Your layout should be contains ViewPager with id @id/tabSwipePager |
void |
setOnTabSelectedListener(ITabSwipe.OnTabSelectedListener onTabSelectedListener) |
void |
setSmoothScroll(boolean smoothScroll)
Smooth scroll of ViewPager when user click on tab
|
addon, addon, addon, getLayoutInflater, instantiate, instantiate, instantiate, instantiate, isAddonAttached, lockAttaching, obtainAddonsList, onAttach, onCreate, performAddonAction, startActionModedontSaveMe, getContainerId, getContextMenuListener, getDefaultSharedPreferences, getDefaultSharedPreferences, getLayoutInflater, getMenuInflater, getSharedPreferences, getSharedPreferences, getSupportActionBar, getSupportActionBarContext, getSupportActivity, getSupportApplication, getSupportFragmentManager, getSystemService, isDetachChildFragments, onAttach, onContextItemSelected, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateContextMenu, onCreateOptionsMenu, onCreateOptionsMenu, onCreateView, onInflate, onInflate, onOptionsItemSelected, onOptionsItemSelected, onPrepareOptionsMenu, onPrepareOptionsMenu, onViewCreated, openContextMenu, registerForContextMenu, setDetachChildFragments, unregisterForContextMenudump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityCreated, onActivityResult, onConfigurationChanged, onCreateAnimation, onDestroy, onDestroyOptionsMenu, onDetach, onHiddenChanged, onLowMemory, onOptionsMenuClosed, onPause, onResume, onSaveInstanceState, onStart, onStop, onViewStateRestored, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivityForResult, toStringpublic TabSwipeFragment.TabInfo addTab(java.lang.CharSequence title, java.lang.Class<? extends Fragment> fragmentClass)
addTab in interface ITabSwipe<TabSwipeFragment.TabInfo>public TabSwipeFragment.TabInfo addTab(java.lang.CharSequence title, java.lang.Class<? extends Fragment> fragmentClass, android.os.Bundle fragmentArguments)
addTab in interface ITabSwipe<TabSwipeFragment.TabInfo>public TabSwipeFragment.TabInfo addTab(int title, java.lang.Class<? extends Fragment> fragmentClass)
addTab in interface ITabSwipe<TabSwipeFragment.TabInfo>public TabSwipeFragment.TabInfo addTab(int title, java.lang.Class<? extends Fragment> fragmentClass, android.os.Bundle fragmentArguments)
addTab in interface ITabSwipe<TabSwipeFragment.TabInfo>public TabSwipeFragment.TabInfo addTab(TabSwipeFragment.TabInfo tabInfo)
addTab in interface ITabSwipe<TabSwipeFragment.TabInfo>public TabSwipeFragment.TabInfo addTab(TabSwipeFragment.TabInfo tabInfo, int position)
addTab in interface ITabSwipe<TabSwipeFragment.TabInfo>public ITabSwipe.OnTabSelectedListener getOnTabSelectedListener()
getOnTabSelectedListener in interface ITabSwipe<TabSwipeFragment.TabInfo>public boolean isSmoothScroll()
isSmoothScroll in interface ITabSwipe<TabSwipeFragment.TabInfo>protected ActionBar.Tab makeActionBarTab(TabSwipeFragment.TabInfo tabInfo)
public android.view.View onCreateView(LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
onCreateView in interface IHoloFragmentonCreateView in class _HoloFragmentpublic void onDestroyView()
onDestroyView in class _HoloFragmentprotected abstract void onHandleTabs()
public void onTabSelected(int position)
public void onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState)
onViewCreated in class Fragmentpublic void reloadTabs()
reloadTabs in interface ITabSwipe<TabSwipeFragment.TabInfo>public void removeAllTabs()
removeAllTabs in interface ITabSwipe<TabSwipeFragment.TabInfo>public TabSwipeFragment.TabInfo removeTab(int position)
removeTab in interface ITabSwipe<TabSwipeFragment.TabInfo>public TabSwipeFragment.TabInfo removeTab(TabSwipeFragment.TabInfo tabInfo)
removeTab in interface ITabSwipe<TabSwipeFragment.TabInfo>public void setCurrentTab(int position)
setCurrentTab in interface ITabSwipe<TabSwipeFragment.TabInfo>public void setCustomLayout(int customLayout)
setCustomLayout in interface ITabSwipe<TabSwipeFragment.TabInfo>public void setOnTabSelectedListener(ITabSwipe.OnTabSelectedListener onTabSelectedListener)
setOnTabSelectedListener in interface ITabSwipe<TabSwipeFragment.TabInfo>public void setSmoothScroll(boolean smoothScroll)
setSmoothScroll in interface ITabSwipe<TabSwipeFragment.TabInfo>Copyright © 2012-2013. All Rights Reserved.