Fixed Health and XP bars bug for Marshmallow devices. Tested down to

Donut on x86 VM.
This commit is contained in:
Zukero
2016-04-26 13:25:57 +02:00
parent 6ca4786e6a
commit 269c6567ae
8 changed files with 21 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 223 B

View File

@@ -1,12 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background" android:drawable="@drawable/ui_bar_background">
<item android:id="@android:id/background">
<nine-patch android:src="@drawable/ui_bar_background"/>
</item>
<item android:id="@android:id/secondaryProgress">
<clip>
<nine-patch android:src="@drawable/ui_bar_background"/>
</clip>
</item>
<item android:id="@android:id/progress">
<clip>
<nine-patch android:src="@drawable/ui_yellow_foreground" />
</clip>
</item>
<!-- <item android:id="@android:id/secondaryProgress">
<clip android:drawable="@drawable/ui_bar_background" />
</item>
<item android:id="@android:id/progress">
<clip android:drawable="@drawable/ui_yellow_foreground" />
</item>
-->
</layer-list>

View File

@@ -1,13 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background" android:drawable="@drawable/ui_bar_background">
<item android:id="@android:id/background">
<nine-patch android:src="@drawable/ui_bar_background"/>
</item>
<item android:id="@android:id/secondaryProgress">
<clip android:drawable="@drawable/ui_bar_background" />
<clip>
<nine-patch android:src="@drawable/ui_bar_background"/>
</clip>
</item>
<item android:id="@android:id/progress">
<clip android:drawable="@drawable/ui_red_foreground" />
<clip>
<nine-patch android:src="@drawable/ui_red_foreground" />
</clip>
</item>
<!--

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 B

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 B

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 B

After

Width:  |  Height:  |  Size: 230 B