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 8f9242a..ae7a9fb 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/MainActivity.java @@ -118,11 +118,11 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On }); GameDifficulty lastChosenDifficulty = GameDifficulty.valueOf(settings.getString("lastChosenDifficulty", "Easy")); difficultyBar.setRating(GameDifficulty.getValidDifficultyList().indexOf(lastChosenDifficulty) + 1); - LayerDrawable stars = (LayerDrawable)difficultyBar.getProgressDrawable(); + /*LayerDrawable stars = (LayerDrawable)difficultyBar.getProgressDrawable(); stars.getDrawable(2).setColorFilter(getResources().getColor(R.color.colorPrimary), PorterDuff.Mode.SRC_ATOP);//Color for Stars fully selected stars.getDrawable(1).setColorFilter(getResources().getColor(R.color.middleblue), PorterDuff.Mode.SRC_ATOP);//Color for Stars partially selected stars.getDrawable(0).setColorFilter(getResources().getColor(R.color.lightblue), PorterDuff.Mode.SRC_ATOP);//color for stars not selected - + */ // on first create always check for loadable levels! SharedPreferences.Editor editor = settings.edit(); editor.putBoolean("savesChanged", true); diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/SudokuKeyboardLayout.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/SudokuKeyboardLayout.java index 1ee3023..39fa61a 100644 --- a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/SudokuKeyboardLayout.java +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/SudokuKeyboardLayout.java @@ -26,7 +26,7 @@ public class SudokuKeyboardLayout extends LinearLayout implements IHighlightChan SudokuButton [] buttons; GameController gameController; Symbol symbolsToUse = Symbol.Default; - float normalTextSize = 30; // in dp + float normalTextSize = 30; // in sp LinearLayout [] layouts = new LinearLayout[2]; OnClickListener listener = new OnClickListener() { @@ -115,7 +115,7 @@ public class SudokuKeyboardLayout extends LinearLayout implements IHighlightChan buttons[buttonIndex].setTextColor(getResources().getColor(R.color.white)); buttons[buttonIndex].setBackgroundResource(R.drawable.mnenomic_numpad_button); buttons[buttonIndex].setText(Symbol.getSymbol(symbolsToUse, buttonIndex)); - buttons[buttonIndex].setTextSize(TypedValue.COMPLEX_UNIT_DIP,normalTextSize); + buttons[buttonIndex].setTextSize(TypedValue.COMPLEX_UNIT_SP,normalTextSize); buttons[buttonIndex].setValue(buttonIndex + 1); buttons[buttonIndex].setOnClickListener(listener); @@ -146,9 +146,9 @@ public class SudokuKeyboardLayout extends LinearLayout implements IHighlightChan public void updateNotesEnabled() { if(gameController.getNoteStatus()) { - setTextSize(TypedValue.COMPLEX_UNIT_DIP,normalTextSize*0.55f); + setTextSize(TypedValue.COMPLEX_UNIT_SP,normalTextSize*0.55f); } else { - setTextSize(TypedValue.COMPLEX_UNIT_DIP,normalTextSize); + setTextSize(TypedValue.COMPLEX_UNIT_SP,normalTextSize); } } diff --git a/app/src/main/res/drawable/numfirst.png b/app/src/main/res/drawable/numfirst.png new file mode 100644 index 0000000..ab44980 Binary files /dev/null and b/app/src/main/res/drawable/numfirst.png differ diff --git a/app/src/main/res/drawable/numfull.png b/app/src/main/res/drawable/numfull.png new file mode 100644 index 0000000..a104172 Binary files /dev/null and b/app/src/main/res/drawable/numfull.png differ diff --git a/app/src/main/res/layout-land/activity_main_menu.xml b/app/src/main/res/layout-land/activity_main_menu.xml index d35eb51..ef58358 100644 --- a/app/src/main/res/layout-land/activity_main_menu.xml +++ b/app/src/main/res/layout-land/activity_main_menu.xml @@ -111,7 +111,9 @@ android:clickable="true" android:numStars="4" android:rating="1" - android:stepSize="1"/> + android:stepSize="1" + android:scaleX="1.2" + android:scaleY="1.2"/>