mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-28 14:57:12 +00:00
RCApp: correct india zulu flag
This commit is contained in:
1 parent
b45da62992
commit
a05f39a266
7 files changed
+67
-3
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 988 B |
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 244 B |
Binary file not shown.
|
After Width: | Height: | Size: 301 B |
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:left="40dp"
|
||||
android:top="30dp">
|
||||
<bitmap
|
||||
android:gravity="top"
|
||||
android:src="@drawable/flag_zulu_96dp" />
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:left="-36dp"
|
||||
android:top="3dp">
|
||||
<bitmap
|
||||
android:gravity="top"
|
||||
android:src="@drawable/flag_shape_01_96dp_dark" />
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:left="-40dp"
|
||||
android:top="-30dp">
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@drawable/flag_india_96dp" />
|
||||
</item>
|
||||
|
||||
</layer-list>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:left="40dp"
|
||||
android:top="30dp">
|
||||
<bitmap
|
||||
android:gravity="top"
|
||||
android:src="@drawable/flag_zulu_96dp"/>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:left="40dp"
|
||||
android:top="30dp">
|
||||
<bitmap
|
||||
android:gravity="top"
|
||||
android:src="@drawable/flag_shape_01_outline_96dp"/>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:left="-40dp"
|
||||
android:top="-30dp">
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@drawable/flag_india_96dp"/>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:left="-40dp"
|
||||
android:top="-30dp">
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@drawable/flag_shape_01_outline_96dp"/>
|
||||
</item>
|
||||
|
||||
</layer-list>
|
||||
+3
-3
@@ -90,8 +90,8 @@ public class FlagsResources {
|
||||
break;
|
||||
|
||||
case INDIA_ZULU:
|
||||
flag = "flag_india_zulu_" + size + "dp";
|
||||
outline = outline.replace("XX", "01");
|
||||
flag = "flag_india_zulu_" + AppPreferences.on(context).getTheme();
|
||||
outline = null; // because of custom xml
|
||||
break;
|
||||
|
||||
case JURY:
|
||||
@@ -131,7 +131,7 @@ public class FlagsResources {
|
||||
|
||||
result.add(context.getResources().getIdentifier(flag, "drawable", context.getPackageName()));
|
||||
|
||||
if (AppConstants.LIGHT_THEME.equals(AppPreferences.on(context).getTheme())) {
|
||||
if (AppConstants.LIGHT_THEME.equals(AppPreferences.on(context).getTheme()) && outline != null) {
|
||||
result.add(context.getResources().getIdentifier(outline, "drawable", context.getPackageName()));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user