summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen
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-04-24 13:39:48 +0900
commitd2bcdbb5b5f54bbe8980f5a18222ef779d54e05a (patch)
tree4c5f2312209472fa8270910b57e0d623ca796b36 /Xamarin.Forms.Platform.Tizen
parent725cbc498a4d65e52bc11c85e0c65fc0fefbaddc (diff)
downloadxamarin-forms-d2bcdbb5b5f54bbe8980f5a18222ef779d54e05a.tar.gz
xamarin-forms-d2bcdbb5b5f54bbe8980f5a18222ef779d54e05a.tar.bz2
xamarin-forms-d2bcdbb5b5f54bbe8980f5a18222ef779d54e05a.zip
Add support for resources with multiple DPI
Change-Id: I637979182a5df75eb708eda85ffcd3ca7af05c63 Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
-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)
{