summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xamarin.Forms.Platform.Tizen/Forms.cs9
-rw-r--r--[-rwxr-xr-x]Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs4
-rw-r--r--[-rwxr-xr-x]Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs4
3 files changed, 13 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Forms.cs b/Xamarin.Forms.Platform.Tizen/Forms.cs
index 85b37aed..83c5173c 100644
--- a/Xamarin.Forms.Platform.Tizen/Forms.cs
+++ b/Xamarin.Forms.Platform.Tizen/Forms.cs
@@ -298,6 +298,15 @@ namespace Xamarin.Forms.Platform.Tizen
{
return eflPt / s_elmScale.Value;
}
+
+ /// <summary>
+ /// Get the EFL's profile
+ /// </summary>
+ /// <returns></returns>
+ internal static string GetProfile()
+ {
+ return s_profile.Value;
+ }
}
class TizenExpressionSearch : ExpressionVisitor, IExpressionSearch
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs
index 4b3b6990..e2611ead 100755..100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs
@@ -55,8 +55,8 @@ namespace Xamarin.Forms.Platform.Tizen
{
if (Control == null)
{
- ///TODO: If 'WATCH' target idiom is added. must be replaced 'Unsupported' to 'TargetIdiom.WATCH'.
- if (Device.Idiom == TargetIdiom.Unsupported)
+ ///TODO: If 'Watch' target idiom is added, it should be replaced something like Device.Idiom == TargetIdiom.Watch.
+ if (Forms.GetProfile() == "wearable")
{
SetNativeControl(new Native.CircleListView(Forms.Context.MainWindow));
}
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs
index 6c13ea3b..96fb7d9b 100755..100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs
@@ -28,8 +28,8 @@ namespace Xamarin.Forms.Platform.Tizen
{
if (Control == null)
{
- ///TODO: If 'WATCH' target idiom is added. must be replaced 'Unsupported' to 'TargetIdiom.WATCH'.
- if (Device.Idiom == TargetIdiom.Unsupported)
+ ///TODO: If 'Watch' target idiom is added, it should be replaced something like Device.Idiom == TargetIdiom.Watch.
+ if (Forms.GetProfile() == "wearable" )
{
SetNativeControl(new CircleScroller(Forms.Context.MainWindow));
}