|
@@ -8,7 +8,7 @@ import android.view.ViewGroup.LayoutParams;
|
8
|
8
|
|
9
|
9
|
import com.reactnativenavigation.layout.bottomtabs.BottomTabsCreator;
|
10
|
10
|
import com.reactnativenavigation.layout.bottomtabs.BottomTabsLayout;
|
11
|
|
-import com.reactnativenavigation.utils.ViewIdGenerator;
|
|
11
|
+import com.reactnativenavigation.utils.CompatUtils;
|
12
|
12
|
|
13
|
13
|
import java.util.List;
|
14
|
14
|
|
|
@@ -63,7 +63,7 @@ public class LayoutFactory {
|
63
|
63
|
|
64
|
64
|
private View createSideMenuLeft(LayoutNode node) {
|
65
|
65
|
View view = create(node.children.get(0));
|
66
|
|
- view.setId(ViewIdGenerator.generate());
|
|
66
|
+ view.setId(CompatUtils.generateViewId());
|
67
|
67
|
DrawerLayout.LayoutParams lp = new DrawerLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
|
68
|
68
|
lp.gravity = Gravity.LEFT;
|
69
|
69
|
view.setLayoutParams(lp);
|
|
@@ -72,7 +72,7 @@ public class LayoutFactory {
|
72
|
72
|
|
73
|
73
|
private View createSideMenuRight(LayoutNode node) {
|
74
|
74
|
View view = create(node.children.get(0));
|
75
|
|
- view.setId(ViewIdGenerator.generate());
|
|
75
|
+ view.setId(CompatUtils.generateViewId());
|
76
|
76
|
DrawerLayout.LayoutParams lp = new DrawerLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
|
77
|
77
|
lp.gravity = Gravity.RIGHT;
|
78
|
78
|
view.setLayoutParams(lp);
|
|
@@ -82,14 +82,14 @@ public class LayoutFactory {
|
82
|
82
|
private View createContainerView(LayoutNode node) {
|
83
|
83
|
final String name = (String) node.data.get("name");
|
84
|
84
|
Container container = new Container(activity, reactRootViewCreator, node.id, name);
|
85
|
|
- container.setId(ViewIdGenerator.generate());
|
|
85
|
+ container.setId(CompatUtils.generateViewId());
|
86
|
86
|
return container;
|
87
|
87
|
|
88
|
88
|
}
|
89
|
89
|
|
90
|
90
|
private View createContainerStackView(LayoutNode node) {
|
91
|
91
|
final ContainerStackLayout containerStack = new ContainerStackLayout(activity);
|
92
|
|
- containerStack.setId(ViewIdGenerator.generate());
|
|
92
|
+ containerStack.setId(CompatUtils.generateViewId());
|
93
|
93
|
addChildrenNodes(containerStack, node.children);
|
94
|
94
|
return containerStack;
|
95
|
95
|
}
|