Fixed the dificulty stars on the main page for devices with an API level < 21.

This commit is contained in:
Christopher Beckmann 2016-02-20 20:58:46 +01:00
parent fa54fe0a87
commit a0d5b66934
8 changed files with 14 additions and 15 deletions

View file

@ -75,11 +75,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.
newLevelManager.checkAndRestock();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -17,16 +17,11 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<bitmap
android:src="@drawable/ic_star_grey_48dp"/>
</item>
<item android:id="@android:id/secondaryProgress">
<bitmap
android:src="@drawable/ic_star_half_black_48dp"
android:tint="@color/middlegrey" />
android:src="@drawable/ic_star_grey_36dp" />
</item>
<item android:id="@android:id/progress">
<bitmap
android:src="@drawable/ic_star_blue_48dp" />
android:src="@drawable/ic_star_blue_36dp" />
</item>
</layer-list>

View file

@ -102,7 +102,6 @@
<RatingBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/difficultyBar"
android:layout_gravity="center_horizontal"
android:clickable="true"

View file

@ -5,4 +5,12 @@
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
</style>
<style name="RatingBar" parent="RatingBarStyle">
<item name="android:minHeight">57dp</item>
<item name="android:maxHeight">57dp</item>
<item name="android:layout_height">57dp</item>
</style>
</resources>

View file

@ -4,6 +4,7 @@
<style name="RatingBar" parent="RatingBarStyle">
<item name="android:minHeight">80dip</item>
<item name="android:maxHeight">80dip</item>
<item name="android:layout_height">80dp</item>
</style>
</resources>

View file

@ -49,8 +49,9 @@
</style>
<style name="RatingBar" parent="RatingBarStyle">
<item name="android:minHeight">57dip</item>
<item name="android:maxHeight">57dip</item>
<item name="android:minHeight">50dp</item>
<item name="android:maxHeight">50dp</item>
<item name="android:layout_height">50dp</item>
</style>