locked
EditText hint does not float above text RRS feed

  • Question

  • User177928 posted

    Hi, I updated the Android Support libraries from v24.2.1 to v25.1.0 and noticed that in one of my activities the hint does not float above the text anymore. The hint is set in the layout, text is set by code at the end of OnCreate(). It floats away when the user deletes all text in the box, clicks somewhere else and starts typing again.

    Fortunately I don't need to make an update of the support libraries, but it is an interesting problem after all.

    <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.design.widget.TextInputEditText android:inputType="number" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/prefTimeoutEditText" android:text="100" android:hint="@string/addTimeout" /> </android.support.design.widget.TextInputLayout>

    Friday, February 10, 2017 1:34 PM

All replies

  • User41045 posted

    @FlorianReitz I have tried and was able to reproduce the issue with the code snippet shared by you. Hence, I have gone ahead and filed a bug here: https://bugzilla.xamarin.com/show_bug.cgi?id=52477

    You can add yourself to the CC list and provide missing information in the Comment Box if any.

    Monday, February 13, 2017 3:09 PM
  • User1669 posted

    Seems to be a known issue with the latest v25.1.0 and not fixed in v25.1.1.

    https://code.google.com/p/android/issues/detail?id=230171

    I need v25.1.0+ to fix a bug, but in doing so it's introduced this and 2 other bugs. Seriously Google? Lol

    Monday, February 13, 2017 11:59 PM
  • User41045 posted

    @rmacias Thanks for this info. I have gone ahead and added the same in the bug. It might help our engineers as well.

    Wednesday, February 15, 2017 7:12 PM
  • User167386 posted

    25.3.1 is told to have fixed this. Any estimation on how could this be updated?

    Thursday, April 20, 2017 6:06 AM
  • User41045 posted

    @tronex Seems like the issue is still not fixed https://issuetracker.google.com/issues/37129739#comment25

    Tuesday, April 25, 2017 6:27 PM
  • User167386 posted

    @AnubhavRanjan See 25.2.0 fixes here: https://developer.android.com/topic/libraries/support-library/revisions.html#25-2-0

    It is mentioned down there

    Wednesday, April 26, 2017 8:36 AM
  • User167386 posted

    Confirmed, its fixed :D @AnubhavRanjan

    Thursday, April 27, 2017 6:10 AM