summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.ControlGallery.Android
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2017-03-24 17:54:12 (GMT)
committerGitHub <noreply@github.com>2017-03-24 17:54:12 (GMT)
commit63af84080454e7b108208b6e8e67bbf503e41209 (patch)
tree01ca8da27de5acd510c4a075d512b5c66a98b4d3 /Xamarin.Forms.ControlGallery.Android
parenteea0bdcc6e3fdfcf3229abedac32204e47602f60 (diff)
downloadxamarin-forms-63af84080454e7b108208b6e8e67bbf503e41209.zip
xamarin-forms-63af84080454e7b108208b6e8e67bbf503e41209.tar.gz
xamarin-forms-63af84080454e7b108208b6e8e67bbf503e41209.tar.bz2
[Android] Still look for the normal drawable on resources (#839)
* [Android] Still look for the normal drawable on resources * [Android]Fix code style
Diffstat (limited to 'Xamarin.Forms.ControlGallery.Android')
-rw-r--r--Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize.xml9
-rw-r--r--Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize_disabled.xml5
-rw-r--r--Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize_enabled.pngbin0 -> 1558 bytes
-rw-r--r--Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj9
4 files changed, 23 insertions, 0 deletions
diff --git a/Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize.xml b/Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize.xml
new file mode 100644
index 0000000..d5de57b
--- /dev/null
+++ b/Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:state_enabled="false"
+ android:drawable="@drawable/synchronize_disabled" />
+ <item
+ android:state_enabled="true"
+ android:drawable="@drawable/synchronize_enabled" />
+</selector> \ No newline at end of file
diff --git a/Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize_disabled.xml b/Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize_disabled.xml
new file mode 100644
index 0000000..866845b
--- /dev/null
+++ b/Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize_disabled.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
+ android:src="@drawable/synchronize_enabled"
+ android:alpha="178">
+</bitmap> \ No newline at end of file
diff --git a/Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize_enabled.png b/Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize_enabled.png
new file mode 100644
index 0000000..339cab5
--- /dev/null
+++ b/Xamarin.Forms.ControlGallery.Android/Resources/drawable/synchronize_enabled.png
Binary files differ
diff --git a/Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj b/Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj
index c8b9f6e..75a5a7b 100644
--- a/Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj
+++ b/Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj
@@ -274,6 +274,15 @@
<ItemGroup>
<BundleResource Include="Resources\drawable\caret_r.png" />
</ItemGroup>
+ <ItemGroup>
+ <AndroidResource Include="Resources\drawable\synchronize.xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <AndroidResource Include="Resources\drawable\synchronize_disabled.xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <AndroidResource Include="Resources\drawable\synchronize_enabled.png" />
+ </ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Import Project="..\packages\Xamarin.Insights.1.11.4\build\MonoAndroid10\Xamarin.Insights.targets" Condition="Exists('..\packages\Xamarin.Insights.1.11.4\build\MonoAndroid10\Xamarin.Insights.targets')" />