Project

General

Profile

« Previous | Next » 

Revision 92843d3b

Added by Leszek Koltunski over 3 years ago

Rework the bottom pane

View differences:

src/main/java/org/distorted/states/RubikStateSolution.java
77 77
    layoutTop.addView(text);
78 78

  
79 79
    // BOT ////////////////////////////
80
    LinearLayout layoutBot = act.findViewById(R.id.lowerBar);
81
    layoutBot.removeAllViews();
82

  
83
    LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.MATCH_PARENT,1);
84

  
80 85
    setupPrevButton(act,width);
81 86
    setupNextButton(act,width);
82 87
    setupTextView(act,width);
83 88

  
84
    LinearLayout layoutLeft = act.findViewById(R.id.mainBarLeft);
85
    layoutLeft.removeAllViews();
89
    LinearLayout layoutLeft = new LinearLayout(act);
90
    layoutLeft.setLayoutParams(params);
91

  
86 92
    layoutLeft.addView(mPrevButton);
87 93
    layoutLeft.addView(mMovesText);
88 94
    layoutLeft.addView(mNextButton);
89 95

  
90 96
    setupBackButton(act,width);
91 97

  
92
    LinearLayout layoutRight = act.findViewById(R.id.mainBarRight);
93
    layoutRight.removeAllViews();
98
    LinearLayout layoutRight = new LinearLayout(act);
99
    layoutRight.setLayoutParams(params);
100

  
94 101
    layoutRight.addView(mBackButton);
102

  
103
    layoutBot.addView(layoutLeft);
104
    layoutBot.addView(layoutRight);
95 105
    }
96 106

  
97 107
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff