Project

General

Profile

« Previous | Next » 

Revision 24da418d

Added by Leszek Koltunski about 1 year ago

Dialog About.

View differences:

src/main/java/org/distorted/dialogs/RubikDialogAbout.java
16 16
import android.view.View;
17 17
import android.view.Window;
18 18
import android.view.WindowManager;
19
import android.widget.TextView;
19 20

  
20 21
import androidx.fragment.app.FragmentActivity;
21 22

  
......
27 28
public class RubikDialogAbout extends RubikDialogAbstract
28 29
  {
29 30
  private static final String WHATS_NEW =
30
      "1. Implement 2x2x3, Pyraminx & Skewb Diamond solvers.\n" +
31
      "2. Connect the solvers to the scrambling engine. Which means: from now on, " +
31
      "1. Solvers: 2x2x3, Pyraminx & Skewb Diamond.\n" +
32
      "2. Implement Icosamate & Master Icosamate\n" +
33
      "3. Connect the solvers to the scrambling engine. Which means: from now on, " +
32 34
       "all puzzles which have a solver implemented will be perfectly scrambled " +
33 35
       " - i.e. any scramble at Level 7 will always require exactly 7 moves to solve. " +
34
       "Which also means that in some point in the future, we'll have to clear the High Scores.\n" +
35
      "3. Implement Icosamate & Master Icosamate";
36
       "Which also means that in some point in the future, we'll have to clear the High Scores.";
36 37

  
37 38
  private static final String WHATS_COMING =
38
      "1. Implemented Pocket Cube, Skewb solvers.\n" +
39
      "1. More solvers (2x2, Skewb, Dino).\n" +
39 40
      "2. Support for adjustable stickers.\n" +
40 41
      "3. In-game currency (stars)\n" +
41 42
      "4. More objects (Penrose Cubes, higher-order Jings, Ghost Cubes, more Mirrors, more Mixups)";
......
103 104
    int margin= (int)(mHeight*0.010f);
104 105
    int titleH= (int)(mHeight*0.035f);
105 106
    int padd  = (int)(mHeight*0.010f);
107

  
108
    TextView newV = view.findViewById(R.id.new_message);
109
    newV.setText(WHATS_NEW);
110
    TextView comV = view.findViewById(R.id.coming_message);
111
    comV.setText(WHATS_COMING);
106 112
    }
107 113

  
108 114
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/res/layout/dialog_about.xml
136 136
            android:paddingRight="10dp">
137 137

  
138 138
            <LinearLayout
139
                 android:id="@+id/new_scrollable_main_layout"
139
                 android:id="@+id/new_main_layout"
140 140
                 android:layout_width="match_parent"
141 141
                 android:layout_height="wrap_content"
142 142
                 android:orientation="vertical">
143 143

  
144 144
                 <TextView
145
                     android:id="@+id/new_scrollable_message"
145
                     android:id="@+id/new_message"
146 146
                     android:layout_width="match_parent"
147 147
                     android:layout_height="match_parent"
148 148
                     android:text="@string/credits1"
......
181 181
            android:paddingRight="10dp">
182 182

  
183 183
            <LinearLayout
184
                 android:id="@+id/coming_scrollable_main_layout"
184
                 android:id="@+id/coming_main_layout"
185 185
                 android:layout_width="match_parent"
186 186
                 android:layout_height="wrap_content"
187 187
                 android:orientation="vertical">
188 188

  
189 189
                 <TextView
190
                     android:id="@+id/coming_scrollable_message"
190
                     android:id="@+id/coming_message"
191 191
                     android:layout_width="match_parent"
192 192
                     android:layout_height="match_parent"
193 193
                     android:text="@string/credits2"

Also available in: Unified diff