Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

TextInputLayout problem.

mohammadomidvarmohammadomidvar USMember ✭✭
edited August 2015 in Xamarin.Android

Hi!
When I add an action to myedittext.FocusChanged the android.support.design.TextInputLayout doesn't work completely and always stay at top of the edittext with accent color.
Is there any way to solve the problem?!

Answers

  • mohammadomidvarmohammadomidvar USMember ✭✭

    I'v found the answer.
    Accidently, I tapped a radio button in my layout and I saw that TextInputLayout updated and the floating label changed and I found out that if layout refreshes the TextInputLayout updates.
    So I just add this to my FocusChanged method:
    ((TextView)sender).Text = ((TextView)sender).Text;

Sign In or Register to comment.