update header list item
authorYurii Zinchuk/Tizen Services & IoT (PLT) /SRPOL/Engineer/Samsung Electronics <y.zinchuk@samsung.com>
Thu, 13 Apr 2023 15:19:44 +0000 (17:19 +0200)
committerPiotr Czaja/Tizen Services & IoT (PLT) /SRPOL/Engineer/Samsung Electronics <p.czaja@samsung.com>
Tue, 18 Apr 2023 09:37:34 +0000 (11:37 +0200)
SettingCore/Views/TextHeaderListItem.cs

index f10c17c288ff61b2bd868accbb7f8c65a0e8442b..0988e7758c9ab7a74a0645f3ac7f9b5fa6324507 100644 (file)
@@ -10,7 +10,7 @@ namespace SettingCore.Views
 
         private TextLabel textLabel;
 
-        public TextHeaderListItem(string text) : base()
+        public TextHeaderListItem(string text, bool multiLine = false) : base()
         {
             AccessibilityRole = Role.Label;
 
@@ -22,11 +22,13 @@ namespace SettingCore.Views
 
             textLabel = new TextLabel(text)
             {
+                WidthSpecification = LayoutParamPolicies.MatchParent,
                 AccessibilityHidden = true,
                 Margin = new Extents(24, 0, 16, 16).SpToPx(),
                 TextColor = TextColors.Normal,
                 PixelSize = 24.SpToPx(),
                 Text = text,
+                MultiLine = multiLine,
             };
 
             Add(textLabel);
@@ -40,3 +42,4 @@ namespace SettingCore.Views
         protected override string AccessibilityGetName() => textLabel.Text;
     }
 }
+