How to remove android entry underline on a SfTextInputLayout?

I do use  SfTextInputLayout all over my App.


Now I need to make some layout changes, and I need completely remove the Underline that appears on all the Entry controls.

I created an effect that I can apply to a regular entry that is working. But this effect seems to be ignored when applied to an Entry on a SfTextInputLayout.

Is there some way to completely remove the  Underline of an Entry on a SfTextInputLayout?


By the way, is there a way for Hint to be displayed on top instead of inside the control?


Thanks


1 Reply

ET Eswaran Thirugnanasambandam Syncfusion Team May 9, 2022 01:46 PM UTC

Query 1: Is there some way to completely remove the  Underline of an Entry on a SfTextInputLayout?

This requirement can be achieved by setting the UnfocusedStrokeWidth and FocusedStrokeWidth as zero as mentioned in the below code snippet.


[XAML]

<sfTextInput:SfTextInputLayout ContainerType="None"

                                                          FocusedStrokeWidth="0"

                                                          UnfocusedStrokeWidth="0">


Query 2: is there a way for Hint to be displayed on top instead of inside the control?

This requirement can be achieved by setting the IsHintAlwaysFloated as true as mentioned in the below code snippet.


[XAML]

<sfTextInput:SfTextInputLayout ContainerType="None"

                                                          Hint="Hint Text"

                                                          IsHintAlwaysFloated="True">


We have prepared the sample based on your requirements and Please get it from the below attachment.


Please find the below user guide link for more information

https://help.syncfusion.com/xamarin/text-input-layout/fixed-hint-position


Attachment: GettingstartedSfTextInputLayout_b430dda9.zip

Loader.
Up arrow icon