Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove underline on Android and iOS #83

Open
eko94 opened this issue Oct 2, 2020 · 2 comments
Open

Remove underline on Android and iOS #83

eko94 opened this issue Oct 2, 2020 · 2 comments

Comments

@eko94
Copy link

eko94 commented Oct 2, 2020

How can I remove the underline on Androind and iOS?

image

I already tried the following that works in the Xamarin.Forms (Android) controls that I customize:

        protected override void OnElementChanged(ElementChangedEventArgs<AutoSuggestBox> e)
        {
            base.OnElementChanged(e);

            if (Control != null)
            {
                GradientDrawable gd = new GradientDrawable();
                gd.SetColor(global::Android.Graphics.Color.Transparent);
                this.Control.SetBackground(gd);

                this.Control.SetRawInputType(InputTypes.TextFlagNoSuggestions);
            }
        }

I'm using plugin's last version (1.1.1) on Xamarin.Forms (4.7.0.1080).

Regards.

@eko94
Copy link
Author

eko94 commented Oct 2, 2020

Also, how can I set the default text color? I tried using "Black" but it seems that is darker than default.

@tumens2009
Copy link

How to clear underline xamarin forms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants