summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>2017-03-28 11:23:20 +0200
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 11:11:22 +0900
commitd301baaced882e4244c5468269c17acb868cad48 (patch)
treead0bbc8f049573139744ed837d7fb50d91a1a888
parenta0926cb78b48d2ab0bf0a2adce06f8cb46e375b4 (diff)
downloadxamarin-forms-d301baaced882e4244c5468269c17acb868cad48.tar.gz
xamarin-forms-d301baaced882e4244c5468269c17acb868cad48.tar.bz2
xamarin-forms-d301baaced882e4244c5468269c17acb868cad48.zip
Add support for resources with multiple DPI
Change-Id: I637979182a5df75eb708eda85ffcd3ca7af05c63 Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
-rwxr-xr-xXamarin.Forms.Platform.Tizen/ResourcePath.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/ResourcePath.cs b/Xamarin.Forms.Platform.Tizen/ResourcePath.cs
index b3678727..0fde30f7 100755
--- a/Xamarin.Forms.Platform.Tizen/ResourcePath.cs
+++ b/Xamarin.Forms.Platform.Tizen/ResourcePath.cs
@@ -1,3 +1,4 @@
+using System;
using System.IO;
using AppFW = Tizen.Applications;
@@ -13,6 +14,16 @@ namespace Xamarin.Forms.Platform.Tizen
return res;
}
+ foreach (AppFW.ResourceManager.Category category in Enum.GetValues(typeof(AppFW.ResourceManager.Category)))
+ {
+ var path = AppFW.ResourceManager.TryGetPath(category, res);
+
+ if (path != null)
+ {
+ return path;
+ }
+ }
+
AppFW.Application app = AppFW.Application.Current;
if (app != null)
{