Open matghazaryan opened 9 years ago
Same behaviour with password fields and/or custom background. Partially fixed by using standard android animations instead of NineOldAndroid.
+1. Bug found using this layout also:
<com.wrapp.floatlabelededittext.FloatLabeledEditText
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Username" />
</com.wrapp.floatlabelededittext.FloatLabeledEditText>
Steps to reproduce: 1.Open keyboard 2.Enter some text 3.Hide keyboard
The Hint disappears.
I am not able to reproduce this, it might be something like this: http://stackoverflow.com/questions/17994263/edittext-gettext-tostring-sometimes-returns
Could you try replacing:
setShowHint(!TextUtils.isEmpty(s));
with
setShowHint(!TextUtils.isEmpty(mEditText.getText()));
?
Hint disappear when close keyboard.
<com.wrapp.floatlabelededittext.FloatLabeledEditText
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/edit_food_creation_total_fats"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/vertical_space_small"
android:hint="@string/total_fat_text"
android:inputType="numberDecimal"
android:textColorHint="@color/edit_text_hint_color_dark" />
</com.wrapp.floatlabelededittext.FloatLabeledEditText>
When I use setText() on onCreate, hint text not showing too :/
Same here, and I cant access to the setShowHint(boolean)
+1
When I try to write something and hide keyboard the hint not showing. Could you please fix this issue?
For example if we set text input type as password and background as shape. Here is my code
style.xml
edit_text_bg <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">