<StackLayout>
<inputLayout:SfTextInputLayout Hint="Quantity" HelperText="Helping text" ShowHelperText="True" ContainerType="None" Margin="10,0,10,0" >
<Entry Text="Domino"/>
</inputLayout:SfTextInputLayout>
<Entry Text="Default Entry"/>
</StackLayout>
|
Thank you for quick answer,This below code for Time problemelse if (properties[i].ControlType == Pratico.Entities.Enums.ControlType.DateTimePicker){inputLayout.Hint = properties[i].ControlContainer.DateTimePicker.HintSettings.Text;inputLayout.IsVisible = properties[i].ControlContainer.DateTimePicker.Appearance.IsVisible;inputLayout.IsEnabled = properties[i].ControlContainer.DateTimePicker.Appearance.IsEnabled;inputLayout.HelperText = properties[i].ControlContainer.DateTimePicker.HelperText;inputLayout.ShowCharCount = properties[i].ControlContainer.DateTimePicker.ShowCharCount;if (properties[i].ControlContainer.DateTimePicker.CharMaxLength != null) inputLayout.CharMaxLength = Convert.ToInt32(properties[i].ControlContainer.DateTimePicker.CharMaxLength);activeColor = (inputLayout.IsEnabled == false) ? activeColor = Color.Gray : activeColor = Color.Black;if (properties[i].ControlContainer.DateTimePicker.Appearance.IsReadOnly != true && properties[i].ControlContainer.DateTimePicker.IconSettings != null){inputLayout.TrailingViewPosition = ViewPosition.Inside;inputLayout.TrailingView = new Label(){FontFamily = fontFamily,Text = properties[i].ControlContainer.DateTimePicker.IconSettings.TrailingView.IconCs};}var datePicker = new DatePicker(){Date = properties[i].ControlContainer.DateTimePicker.DatePicker.Date,MinimumDate = properties[i].ControlContainer.DateTimePicker.DatePicker.MinimumDate,MaximumDate = properties[i].ControlContainer.DateTimePicker.DatePicker.MaximumDate,TextColor = activeColor,WidthRequest = 110};var timePicker = new TimePicker(){Time = properties[i].ControlContainer.DateTimePicker.TimePicker.Time,Format = properties[i].ControlContainer.DateTimePicker.TimePicker.Format,TextColor = activeColor,BackgroundColor = Color.Transparent,};var stMain = new StackLayout();stMain.Orientation = StackOrientation.Horizontal;stMain.BackgroundColor = Color.Transparent;stMain.Children.Add(datePicker);stMain.Children.Add(timePicker);inputLayout.InputView = stMain;datePicker.DateSelected += DateTimePicker_DateSelected;timePicker.PropertyChanged += DateTimePicker_PropertyChanged;}``
This Below Code for Helper (By the way, as you can already see the problem on the android side, there is no problem on the ios side.)inputLayout = new SfTextInputLayout();inputLayout.ContainerType = ContainerType.Filled;inputLayout.ErrorColor = Color.Red;inputLayout.FocusedColor = Color.LightGreen;inputLayout.UnfocusedColor = Color.DarkGreen;inputLayout.ShowHelperText = true;inputLayout.ShowHint = true;if (properties[i].ControlType == Pratico.Entities.Enums.ControlType.Entry){inputLayout.Hint = properties[i].ControlContainer.Entry.HintSettings.Text;inputLayout.IsVisible = properties[i].ControlContainer.Entry.Appearance.IsVisible;inputLayout.IsEnabled = properties[i].ControlContainer.Entry.Appearance.IsEnabled;inputLayout.HelperText = properties[i].ControlContainer.Entry.HelperText;inputLayout.ShowCharCount = properties[i].ControlContainer.Entry.ShowCharCount;
Hi Tayyip Emre ÖRNEK,Thanks for the update.We were able to reproduce the reported issue and currently we are validating the root cause for the same. We will update the complete details on May 06, 2020.We appreciate your patience until then.Regards,Anand Raj S.
Hi TayyipEmre ÖRNEK,We would like to let you know that we didn't have support for SfTextInputLayout input view to act as a layout like StackLayout or Grid. SfTextInputLayout is just a container with only one supported element and we have to provide Single element inside the SfTextInputLayout. If we want to add more element, create SfTextInputLayout for each element.Please revert us for further investigation.Regards,Anand Raj S.