diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java index a65c2b9..29e09ea 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java @@ -24,6 +24,7 @@ import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; +import android.view.WindowManager; import android.widget.Button; import android.widget.ImageView; import android.widget.RatingBar; @@ -75,9 +76,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On editor.apply(); } - // TODO: remove this after testing - WelcomeDialog welcomeDialog = new WelcomeDialog(); - welcomeDialog.show(getFragmentManager(), "WelcomeDialog"); // check if we need to pre generate levels. diff --git a/app/src/main/res/drawable/ic_star_blue_48dp.png b/app/src/main/res/drawable/ic_star_blue_48dp.png index 872e2b3..05d0034 100644 Binary files a/app/src/main/res/drawable/ic_star_blue_48dp.png and b/app/src/main/res/drawable/ic_star_blue_48dp.png differ diff --git a/app/src/main/res/drawable/ic_star_grey_48dp.png b/app/src/main/res/drawable/ic_star_grey_48dp.png index 991abe1..37e4733 100644 Binary files a/app/src/main/res/drawable/ic_star_grey_48dp.png and b/app/src/main/res/drawable/ic_star_grey_48dp.png differ diff --git a/app/src/main/res/drawable/ratingbar.xml b/app/src/main/res/drawable/ratingbar.xml index 3f204ef..98b8175 100644 --- a/app/src/main/res/drawable/ratingbar.xml +++ b/app/src/main/res/drawable/ratingbar.xml @@ -15,18 +15,25 @@ --> + - - - + android:src="@drawable/ic_star_blue_48dp" + android:tint="@color/colorAccent" /> + + diff --git a/app/src/main/res/layout/activity_main_menu.xml b/app/src/main/res/layout/activity_main_menu.xml index 175c70f..001fb79 100644 --- a/app/src/main/res/layout/activity_main_menu.xml +++ b/app/src/main/res/layout/activity_main_menu.xml @@ -124,7 +124,6 @@ android:layout_gravity="center_horizontal" android:layout_weight="3" android:onClick="onClick" - android:capitalize="none" android:clickable="false" android:elevation="10dp" android:background="@drawable/standalone_button"/> diff --git a/app/src/main/res/layout/welcome_dialog.xml b/app/src/main/res/layout/welcome_dialog.xml index a4e6330..f445fac 100644 --- a/app/src/main/res/layout/welcome_dialog.xml +++ b/app/src/main/res/layout/welcome_dialog.xml @@ -1,12 +1,74 @@ + android:layout_height="match_parent" + android:weightSum="3"> - + android:text="@string/welcome" /> + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5b4bd09..d2d3824 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -87,7 +87,11 @@ Reset - Welcome to Privacy Friendly Sudoku. + Welcome to Privacy Friendly Sudoku. + Swipe or press the arrow buttons on the left nd right to change the game filed mode + Field mode: + Press or swipe the stars to change the difficulty + Difficulty: Are you sure you want to delete this save?