diff options
Diffstat (limited to 'android/3rd_party/HoloEverywhere/library/src/org/holoeverywhere/ITabSwipe.java')
-rw-r--r-- | android/3rd_party/HoloEverywhere/library/src/org/holoeverywhere/ITabSwipe.java | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/android/3rd_party/HoloEverywhere/library/src/org/holoeverywhere/ITabSwipe.java b/android/3rd_party/HoloEverywhere/library/src/org/holoeverywhere/ITabSwipe.java new file mode 100644 index 0000000000..92cd738251 --- /dev/null +++ b/android/3rd_party/HoloEverywhere/library/src/org/holoeverywhere/ITabSwipe.java @@ -0,0 +1,61 @@ + +package org.holoeverywhere; + +import org.holoeverywhere.ITabSwipe.TabInfo; +import org.holoeverywhere.app.Fragment; + +import android.os.Bundle; + +public interface ITabSwipe<T extends TabInfo> { + public static interface OnTabSelectedListener { + public void onTabSelected(int position); + } + + public static interface TabInfo { + public Bundle getFragmentArguments(); + + public Class<? extends Fragment> getFragmentClass(); + + public CharSequence getTitle(); + + public void setFragmentArguments(Bundle fragmentArguments); + + public void setFragmentClass(Class<? extends Fragment> fragmentClass); + + public void setTitle(CharSequence title); + } + + public T addTab(CharSequence title, Class<? extends Fragment> fragmentClass); + + public T addTab(CharSequence title, Class<? extends Fragment> fragmentClass, + Bundle fragmentArguments); + + public T addTab(int title, Class<? extends Fragment> fragmentClass); + + public T addTab(int title, Class<? extends Fragment> fragmentClass, + Bundle fragmentArguments); + + public T addTab(T tabInfo); + + public T addTab(T tabInfo, int position); + + public OnTabSelectedListener getOnTabSelectedListener(); + + public boolean isSmoothScroll(); + + public void reloadTabs(); + + public void removeAllTabs(); + + public T removeTab(int position); + + public T removeTab(T tabInfo); + + public void setCurrentTab(int position); + + public void setCustomLayout(int customLayout); + + public void setOnTabSelectedListener(OnTabSelectedListener onTabSelectedListener); + + public void setSmoothScroll(boolean smoothScroll); +} |