summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-02-08 10:17:28 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 11:11:19 +0900
commitbc891e2b6160d47a9e1960c38e911773bff64b66 (patch)
treea7abb3e73052974406369757a13c478248561152 /Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs
parent6964d20afc00124fd73b540ead1e004844e944fc (diff)
downloadxamarin-forms-bc891e2b6160d47a9e1960c38e911773bff64b66.tar.gz
xamarin-forms-bc891e2b6160d47a9e1960c38e911773bff64b66.tar.bz2
xamarin-forms-bc891e2b6160d47a9e1960c38e911773bff64b66.zip
Support density independent pixel
- Support Enable/Disable of this feature - By default, it was disabled. if you want enabling DP support feature, Use Forms.Init(FormsApplication application, bool useDeviceIndependentPixel) API - Hard-coded pixel value was changed to DP units - If you deal with native coordinate, use Forms.ConvertToScaledPixel / Forms.ConvertToScaledDP - If you convert hard-coded DP to pixels, use Forms.ConvertToPixel - Update font size convert formula Change-Id: I345115551e1c37d27b8a7152af5ef847d035c9a4
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs
index f3a72d02..a34c2faa 100644
--- a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs
+++ b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs
@@ -50,15 +50,15 @@ namespace Xamarin.Forms.Platform.Tizen
public double GetNamedSize(NamedSize size, Type targetElementType, bool useOldSizes)
{
- double baseSize = 10;
- double baseSizeSpan = 2;
+ double baseSize = Forms.ConvertToDPFont(19);
+ double baseSizeSpan = 3;
// In case of TV profile The base named size sholud be lager than mobile profile
- if (Device.Idiom == TargetIdiom.TV)
+ if (Device.Idiom != TargetIdiom.Phone)
{
// TODO: These valuse should be updated when TV profile UX guideline released.
- baseSize = 60;
- baseSizeSpan = 5;
+ baseSize = 50;
+ baseSizeSpan = 12;
}
switch (size)