Project

General

Profile

« Previous | Next » 

Revision 3a9d19ed

Added by Leszek Koltunski about 4 years ago

Progress with Pretty Patterns.

View differences:

src/main/java/org/distorted/uistate/RubikStatePattern.java
39 39

  
40 40
public class RubikStatePattern extends RubikStateAbstract
41 41
  {
42
  private TextView mText;
42 43
  private Button mBackButton;
43 44
  private int mSize;
44 45

  
......
92 93
    // TOP ////////////////////////////
93 94
    LinearLayout layoutTop = act.findViewById(R.id.mainTitle);
94 95
    layoutTop.removeAllViews();
95
    TextView text = (TextView)inflater.inflate(R.layout.upper_text, null);
96
    text.setText(R.string.patterns);
97
    layoutTop.addView(text);
96
    mText = (TextView)inflater.inflate(R.layout.upper_text, null);
97
    mText.setText(R.string.patterns);
98
    layoutTop.addView(mText);
98 99

  
99 100
    // BOT ////////////////////////////
100 101
    DisplayMetrics metrics = act.getResources().getDisplayMetrics();
......
154 155
      });
155 156
    }
156 157

  
158
///////////////////////////////////////////////////////////////////////////////////////////////////
159

  
160
  public void setPatternName(String name)
161
    {
162
    mText.setText(name);
163
    }
164

  
157 165
///////////////////////////////////////////////////////////////////////////////////////////////////
158 166

  
159 167
  public void savePreferences(SharedPreferences.Editor editor)

Also available in: Unified diff