/**
* Set the item for the BottomBar from XML Resource with a default configuration
* for each tab.
*/
public void setItems(@XmlRes int xmlRes, BottomBarTab.Config defaultTabConfig) {
if (xmlRes == 0) {
throw new RuntimeException("No items specified for the BottomBar!");
}
if (defaultTabConfig == null) {
defaultTabConfig = getTabConfig();
}
TabParser parser = new TabParser(getContext(), defaultTabConfig, xmlRes);
updateItems(parser.getTabs());
}
BottomBar.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:QiangHongBao
作者:
评论列表
文章目录