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/RubikStateDone.java
20 20
package org.distorted.states;
21 21

  
22 22
import android.content.SharedPreferences;
23
import android.util.DisplayMetrics;
24 23
import android.util.TypedValue;
25 24
import android.view.LayoutInflater;
26 25
import android.view.View;
......
59 58
    layoutTop.addView(label);
60 59

  
61 60
    // BOT ////////////////////////////
62
    LinearLayout layoutLeft = act.findViewById(R.id.mainBarLeft);
63
    layoutLeft.removeAllViews();
61
    LinearLayout layoutBot = act.findViewById(R.id.lowerBar);
62
    layoutBot.removeAllViews();
64 63

  
65
    LinearLayout layoutRight = act.findViewById(R.id.mainBarRight);
66
    layoutRight.removeAllViews();
64
    LinearLayout.LayoutParams paramsL = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.MATCH_PARENT,1);
65
    LinearLayout layoutLeft = new LinearLayout(act);
66
    layoutLeft.setLayoutParams(paramsL);
67
    LinearLayout layoutRight = new LinearLayout(act);
68
    layoutRight.setLayoutParams(paramsL);
67 69

  
68 70
    int padding = (int)(width*RubikActivity.PADDING);
69 71
    int margin  = (int)(width*RubikActivity.MARGIN);
......
90 92
      });
91 93

  
92 94
    layoutRight.addView(back);
95
    layoutBot.addView(layoutLeft);
96
    layoutBot.addView(layoutRight);
93 97
    }
94 98

  
95 99
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff