|
|
|
@ -133,7 +133,7 @@ public class XWCardTagLayout extends XWHorizontalBoxLayout {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int index = this.cardLayout.toData().getWidgetCount(); |
|
|
|
|
//新加一个card
|
|
|
|
|
//新加一个card,命名规则是tabxy,x为tablayout中tab的index,y为模板中tablayout 的index
|
|
|
|
|
String widgetName = tagName + getTabNameIndex() + getCardLayoutSuffix(cardLayout.toData().getWidgetName(), cardLayout.createDefaultName()); |
|
|
|
|
WTabFitLayout fitLayout = new WTabFitLayout(widgetName, tabFitIndex, currentCard); |
|
|
|
|
fitLayout.setTabNameIndex(getTabNameIndex()); |
|
|
|
|