public class ShopHomeTabUtil
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
ShopHomeTabUtil.TabType
顶部包含的tab种类
|
限定符和类型 | 字段和说明 |
---|---|
static int |
MAX_NAVIGATOR_ORDER |
static int |
MIN_NAVIGATOR_ORDER |
static java.lang.String |
TAB_NUMBER_LIVE |
static java.lang.String |
TAB_NUMBER_REPLY |
static java.lang.String |
TAB_TITLE_LIVE |
static java.lang.String |
TAB_TITLE_REPLY |
构造器和说明 |
---|
ShopHomeTabUtil() |
限定符和类型 | 方法和说明 |
---|---|
static androidx.fragment.app.Fragment |
getFragment(int position,
java.util.List<ShopHomeTabUtil.TabType> tabTitleList) |
static int |
getTabPosition(java.util.List<ShopHomeTabUtil.TabType> tabTypeList,
ShopHomeTabUtil.TabType tabType)
获取指定的tab在导航中的位置
|
static java.util.List<ShopHomeTabUtil.TabType> |
getTabTitleList()
获取电商首页顶部导航tab
|
static boolean |
isPositionValid(int position) |
static boolean |
isUSArea() |
public static final int MIN_NAVIGATOR_ORDER
public static final int MAX_NAVIGATOR_ORDER
public static final java.lang.String TAB_NUMBER_LIVE
public static final java.lang.String TAB_NUMBER_REPLY
public static final java.lang.String TAB_TITLE_LIVE
public static final java.lang.String TAB_TITLE_REPLY
public static java.util.List<ShopHomeTabUtil.TabType> getTabTitleList()
public static androidx.fragment.app.Fragment getFragment(int position, java.util.List<ShopHomeTabUtil.TabType> tabTitleList)
public static boolean isUSArea()
public static boolean isPositionValid(int position)
public static int getTabPosition(java.util.List<ShopHomeTabUtil.TabType> tabTypeList, ShopHomeTabUtil.TabType tabType)
tabTypeList
- tabType
-