Project

General

Profile

« Previous | Next » 

Revision df1e5f21

Added by Leszek Koltunski about 1 year ago

UI improvement to the Config Pane.

View differences:

src/main/java/org/distorted/config/ConfigScreenPane.java
115 115
    nameLayout.setPadding(padding,padding,padding,padding/2);
116 116
    difficultyLayout.setPadding(padding,padding/2,padding,padding/2);
117 117
    authorLayout.setPadding(padding,padding/2,padding,padding/2);
118
    yearLayout.setPadding(padding,padding/2,padding,padding);
119

  
120
    LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.00f);
121
    params.bottomMargin = 0;
122
    params.topMargin    = padding;
123
    params.leftMargin   = padding;
124
    params.rightMargin  = padding;
125

  
126
    nameLayout.setLayoutParams(params);
127
    difficultyLayout.setLayoutParams(params);
128
    authorLayout.setLayoutParams(params);
129
    yearLayout.setLayoutParams(params);
118
    yearLayout.setPadding(padding,padding/2,padding,padding/2);
119

  
120
    LinearLayout.LayoutParams params1 = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.00f);
121
    params1.bottomMargin = 0;
122
    params1.topMargin    = padding;
123
    params1.leftMargin   = padding;
124
    params1.rightMargin  = padding;
125

  
126
    LinearLayout.LayoutParams params2 = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.00f);
127
    params2.bottomMargin = padding;
128
    params2.topMargin    = padding;
129
    params2.leftMargin   = padding;
130
    params2.rightMargin  = padding;
131

  
132
    nameLayout.setLayoutParams(params1);
133
    difficultyLayout.setLayoutParams(params1);
134
    authorLayout.setLayoutParams(params1);
135
    yearLayout.setLayoutParams(params2);
130 136

  
131 137
    TextView text;
132 138
    text = nameLayout.findViewById(R.id.configDetailsName1);

Also available in: Unified diff