|
@@ -50,11 +50,21 @@ public class BottomTabsLayout extends RelativeLayout implements Layout, AHBottom
|
50
|
50
|
ScreenStack newStack = new ScreenStack(activity, params.tabParams.get(position), this);
|
51
|
51
|
screenStacks[position] = newStack;
|
52
|
52
|
newStack.setVisibility(INVISIBLE);
|
|
53
|
+ addScreenStack(newStack);
|
|
54
|
+ }
|
|
55
|
+
|
|
56
|
+ private void addScreenStack(ScreenStack newStack) {
|
53
|
57
|
LayoutParams lp = new LayoutParams(MATCH_PARENT, MATCH_PARENT);
|
54
|
|
- lp.addRule(ABOVE, bottomTabs.getId());
|
|
58
|
+ if (shouldDrawScreenStackAboveBottomTabs(newStack)) {
|
|
59
|
+ lp.addRule(ABOVE, bottomTabs.getId());
|
|
60
|
+ }
|
55
|
61
|
addView(newStack, 0, lp);
|
56
|
62
|
}
|
57
|
63
|
|
|
64
|
+ private boolean shouldDrawScreenStackAboveBottomTabs(ScreenStack newStack) {
|
|
65
|
+ return newStack.getCurrentScreenStyleParams().drawScreenAboveBottomTabs;
|
|
66
|
+ }
|
|
67
|
+
|
58
|
68
|
private void createBottomTabs() {
|
59
|
69
|
bottomTabs = new BottomTabs(getContext());
|
60
|
70
|
bottomTabs.addTabs(params.tabParams, this);
|