Fixed the dificulty stars on the main page for devices with an API level < 21.
This commit is contained in:
parent
fa54fe0a87
commit
a0d5b66934
8 changed files with 14 additions and 15 deletions
|
@ -75,11 +75,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
||||||
editor.apply();
|
editor.apply();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: remove this after testing
|
|
||||||
WelcomeDialog welcomeDialog = new WelcomeDialog();
|
|
||||||
welcomeDialog.show(getFragmentManager(), "WelcomeDialog");
|
|
||||||
|
|
||||||
|
|
||||||
// check if we need to pre generate levels.
|
// check if we need to pre generate levels.
|
||||||
newLevelManager.checkAndRestock();
|
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 |
|
@ -17,16 +17,11 @@
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:id="@android:id/background">
|
<item android:id="@android:id/background">
|
||||||
<bitmap
|
<bitmap
|
||||||
android:src="@drawable/ic_star_grey_48dp"/>
|
android:src="@drawable/ic_star_grey_36dp" />
|
||||||
</item>
|
|
||||||
<item android:id="@android:id/secondaryProgress">
|
|
||||||
<bitmap
|
|
||||||
android:src="@drawable/ic_star_half_black_48dp"
|
|
||||||
android:tint="@color/middlegrey" />
|
|
||||||
</item>
|
</item>
|
||||||
<item android:id="@android:id/progress">
|
<item android:id="@android:id/progress">
|
||||||
<bitmap
|
<bitmap
|
||||||
android:src="@drawable/ic_star_blue_48dp" />
|
android:src="@drawable/ic_star_blue_36dp" />
|
||||||
</item>
|
</item>
|
||||||
</layer-list>
|
</layer-list>
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,6 @@
|
||||||
|
|
||||||
<RatingBar
|
<RatingBar
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/difficultyBar"
|
android:id="@+id/difficultyBar"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
|
|
|
@ -5,4 +5,12 @@
|
||||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||||
</style>
|
</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>
|
</resources>
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<style name="RatingBar" parent="RatingBarStyle">
|
<style name="RatingBar" parent="RatingBarStyle">
|
||||||
<item name="android:minHeight">80dip</item>
|
<item name="android:minHeight">80dip</item>
|
||||||
<item name="android:maxHeight">80dip</item>
|
<item name="android:maxHeight">80dip</item>
|
||||||
|
<item name="android:layout_height">80dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
|
@ -49,8 +49,9 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="RatingBar" parent="RatingBarStyle">
|
<style name="RatingBar" parent="RatingBarStyle">
|
||||||
<item name="android:minHeight">57dip</item>
|
<item name="android:minHeight">50dp</item>
|
||||||
<item name="android:maxHeight">57dip</item>
|
<item name="android:maxHeight">50dp</item>
|
||||||
|
<item name="android:layout_height">50dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue