summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>2017-03-28 11:23:20 +0200
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>2017-04-05 07:47:38 +0200
commitda5c5a3da5f1828337bbb1a2f810220dc28e73e8 (patch)
tree8bec59273167e6c89b8656881e6d5709ce5d5a73
parent8e757e12b8a99c99ae65fa2acc46861716d84096 (diff)
downloadxamarin-forms-da5c5a3da5f1828337bbb1a2f810220dc28e73e8.tar.gz
xamarin-forms-da5c5a3da5f1828337bbb1a2f810220dc28e73e8.tar.bz2
xamarin-forms-da5c5a3da5f1828337bbb1a2f810220dc28e73e8.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)
{