Fixed
Status Update
Comments
au...@google.com <au...@google.com>
[Deleted User] <[Deleted User]> #3
Any workarounds for this?
ca...@gmail.com <ca...@gmail.com> #4
@3 unless you really need any of the changes introduced with 25.1.0 you can simply drop back to 25.0.1
mm...@gmail.com <mm...@gmail.com> #5
You can also do it programatically as the author of the ticket wrote above. Just remove a text attribute from xml and use TextInputEditText.setText("") instead.
we...@gmail.com <we...@gmail.com> #6
This issue only affects TextInputLayout when you add text through XML. The workaround is simple: remove the android:text from edittext that's child of TextInputLayout and set it by code calling setText.
[Deleted User] <[Deleted User]> #7
I'm seeing it on a view that hasn't had it set through XML. It could be because it's an extended TextInputEditText with a compound drawable too and it's own additional saved state or because it does get a value in onFinishInflate - which might kick in, in the same place that setting it in XML does.
[Deleted User] <[Deleted User]> #8
Yep confirmed. If I don't set the default text value in onFinishInflate of my custom view then the hint text works as expected.
un...@gmail.com <un...@gmail.com> #11
It happend when I set text in constructor by code.
I checked this issue is relative with text setting time.
TextInputLayout call addTextChangeListener after EditText is created.
But internal variable of TextInputLayout is set as EditText's text is empty.
I checked this issue is relative with text setting time.
TextInputLayout call addTextChangeListener after EditText is created.
But internal variable of TextInputLayout is set as EditText's text is empty.
se...@gmail.com <se...@gmail.com> #12
[Comment deleted]
se...@gmail.com <se...@gmail.com> #13
I have the same problem. With the text in EditText, the hint value is superimposed.
I'm deriving the TextInputLayout and EditText elenemtler in code, and I use it as in the following example.
final TextInputLayout textInputLayout = new TextInputLayout(this);
final EditText editTextStrCreate = new EditText(AddressAddActivity.this);
editTextStrCreate.setHint("blablabla");
editTextStrCreate.setTextSize(12);
editTextStrCreate.setMaxLines(1);
editTextStrCreate.setSingleLine(true);
TextInputLayout.LayoutParams textInputPosition = new TextInputLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT,RelativeLayout.LayoutParams.MATCH_PARENT);
textInputLayout.addView(editTextStrCreate, textInputPosition);
...
I'm deriving the TextInputLayout and EditText elenemtler in code, and I use it as in the following example.
final TextInputLayout textInputLayout = new TextInputLayout(this);
final EditText editTextStrCreate = new EditText(AddressAddActivity.this);
editTextStrCreate.setHint("blablabla");
editTextStrCreate.setTextSize(12);
editTextStrCreate.setMaxLines(1);
editTextStrCreate.setSingleLine(true);
TextInputLayout.LayoutParams textInputPosition = new TextInputLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT,RelativeLayout.LayoutParams.MATCH_PARENT);
textInputLayout.addView(editTextStrCreate, textInputPosition);
...
si...@gmail.com <si...@gmail.com> #14
same issue. To make it working again when running ap requires to delete text jump to another view and return.
<android.support.design.widget.TextInputLayout
android:id="@+id/username_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<android.support.design.widget.TextInputEditText
android:id="@+id/username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:text="dummy text"
android:hint="@string/username_hint"/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/username_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<android.support.design.widget.TextInputEditText
android:id="@+id/username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:text="dummy text"
android:hint="@string/username_hint"/>
</android.support.design.widget.TextInputLayout>
[Deleted User] <[Deleted User]> #15
25.1.1 doesn't fix the bug. Come on guys. At least give us some update.
de...@gmail.com <de...@gmail.com> #16
I had the same issue, needed change back to 24.1.1 to make it works.
:/
:/
jf...@gmail.com <jf...@gmail.com> #17
I have the same problem, changed to 25.0.1 for make it work again. I hope a new update soon fixes this ¯\_(ツ)_/¯
[Deleted User] <[Deleted User]> #18
Fixed with 25.2.0
dn...@google.com <dn...@google.com> #19
Issue is fixed and released in 25.2.0 support library.
ha...@gmail.com <ha...@gmail.com> #20
Just switched to 25.2.0 but still not working :-(
sr...@gmail.com <sr...@gmail.com> #21
Did not get fixed with 25.2.0 as well.
la...@gmail.com <la...@gmail.com> #22
Found this issue fixed with version 25.2.0
ja...@gmail.com <ja...@gmail.com> #23
Didn't fixed in 25.2.0
hi...@gmail.com <hi...@gmail.com> #24
25.3.1 did fix my InputTextLayout issue.
dr...@gmail.com <dr...@gmail.com> #25
Nope, didn't fixed in 25.3.1
ca...@gmail.com <ca...@gmail.com> #26
It IS fixed in 25.3.1, confirmed in Xamarin Android
gr...@gmail.com <gr...@gmail.com> #27
I also use 25.3.1 and can still reproduce the bug
mw...@gmail.com <mw...@gmail.com> #28
I am using 26.1.0 and still get the same issue
Description
Version used: 25.1.0
Theme used: Theme.AppCompat.NoActionBar
Devices/Android versions reproduced on: 4.1.1 and 7.0
Hey guys, I was testing my app with the Support Library 25.1.0 and found this bug on the TextInputLayout. If the EditText or TextInputEditText inside the TextInputLayout sets text using android:text, the hint and text overlay (Like this:
*Steps to reproduce: *
1. Add a TextInputLayout from the Design library;
2. Add an EditText or TextInputEditText inside it with a hint set;
3. Run the app and notice everything works;
4. Set an android:text value attribute in the EditText
5. Run the app again and notice how the hint and the text overlay. The component doesn't fix the glitch even if the user type something.