public abstract class BaseTabItems
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected android.content.Context |
context |
protected int[] |
iconsNormal |
protected int[] |
iconsSelected |
protected int |
imageViewId |
protected int |
layoutId |
protected int |
normalTextColor |
protected int |
selectedTextColor |
protected TabLayout |
tabMain |
protected int |
textViewId |
protected java.lang.String[] |
titles |
| 构造器和说明 |
|---|
BaseTabItems(android.content.Context context,
TabLayout tabMain,
int layoutId,
int textViewId,
int imageViewId,
java.lang.String[] titles,
int[] tabIconsNormalId,
int[] tabIconsSelectedId,
int selectedTextColor,
int normalTextColor) |
| 限定符和类型 | 方法和说明 |
|---|---|
android.view.View |
getTabViewItemById(int pos,
int viewId) |
protected abstract void |
initTabItemView(int layoutId,
android.view.View view,
int pos) |
int |
setTabSelected(TabLayout.Tab tab) |
void |
setTabUnselected(TabLayout.Tab tab) |
protected android.content.Context context
protected TabLayout tabMain
protected int layoutId
protected int textViewId
protected int imageViewId
protected java.lang.String[] titles
protected int[] iconsNormal
protected int[] iconsSelected
protected int selectedTextColor
protected int normalTextColor
public BaseTabItems(android.content.Context context,
TabLayout tabMain,
int layoutId,
int textViewId,
int imageViewId,
java.lang.String[] titles,
int[] tabIconsNormalId,
int[] tabIconsSelectedId,
int selectedTextColor,
int normalTextColor)
public int setTabSelected(TabLayout.Tab tab)
public void setTabUnselected(TabLayout.Tab tab)
protected abstract void initTabItemView(int layoutId,
android.view.View view,
int pos)
public android.view.View getTabViewItemById(int pos,
int viewId)