summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Cells
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-04-11 15:23:57 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:32 +0900
commit62addcb334f818400783de8622c275a990400f6d (patch)
tree9ce6df0c3c4dbe57736294e4f5af066cc9a80064 /Xamarin.Forms.Platform.Tizen/Cells
parentd49f7d872c2bc257fc314f3778fe44d828c320a9 (diff)
downloadxamarin-forms-62addcb334f818400783de8622c275a990400f6d.tar.gz
xamarin-forms-62addcb334f818400783de8622c275a990400f6d.tar.bz2
xamarin-forms-62addcb334f818400783de8622c275a990400f6d.zip
Use "default" style for TextCellRenderer on TV profile
- Due to TV UX limitations, TextCell.Detail property is not supported on TV profile Change-Id: I541f7813b0c1281b58644039991bfec3c0d29c51
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Cells')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Cells/TextCellRenderer.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Cells/TextCellRenderer.cs b/Xamarin.Forms.Platform.Tizen/Cells/TextCellRenderer.cs
index 1f9594a1..e46783e9 100644
--- a/Xamarin.Forms.Platform.Tizen/Cells/TextCellRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Cells/TextCellRenderer.cs
@@ -5,7 +5,9 @@ namespace Xamarin.Forms.Platform.Tizen
{
public class TextCellRenderer : CellRenderer
{
- public TextCellRenderer() : this("double_label") { }
+ // TextCell.Detail property is not supported on TV profile due to UX limitation.
+ public TextCellRenderer() : this( Device.Idiom == TargetIdiom.Phone ? "double_label" : "default") { }
+
protected TextCellRenderer(string style) : base(style)
{
MainPart = "elm.text";