Add support for resources with multiple DPI
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Tue, 28 Mar 2017 09:23:20 +0000 (11:23 +0200)
committerKangho Hur <kangho.hur@samsung.com>
Mon, 24 Apr 2017 04:39:48 +0000 (13:39 +0900)
Change-Id: I637979182a5df75eb708eda85ffcd3ca7af05c63
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
Xamarin.Forms.Platform.Tizen/ResourcePath.cs

index b367872..0fde30f 100755 (executable)
@@ -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)
                        {