wrapp-archive / floatlabelededittext

Floating hint from edit text - inspired by Matt D. Smith's design: http://dribbble.com/shots/1254439--GIF-Mobile-Form-Interaction?list=users
1.14k stars 221 forks source link

SomeTimes hint text not showing #34

Open matghazaryan opened 9 years ago

matghazaryan commented 9 years ago

screenshot 2014-12-13 17 23 19

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

  <com.wrapp.floatlabelededittext.FloatLabeledEditText
        android:layout_width="match_parent"
        android:layout_height="@dimen/activity_edit_text_height"
        android:layout_marginBottom="@dimen/activity_small_margin"
        android:background="@drawable/edit_text_bg"
        float:fletPadding="5dp">

        <EditText
            android:id="@+id/login_email"
            android:inputType="textEmailAddress"
            android:gravity="bottom"
            android:layout_gravity="bottom"
            android:hint="@string/your_email_address"
            style="@style/ncv_edit_text_style"/>
    </com.wrapp.floatlabelededittext.FloatLabeledEditText>

    <com.wrapp.floatlabelededittext.FloatLabeledEditText
        android:layout_width="match_parent"
        android:layout_height="@dimen/activity_edit_text_height"
        android:background="@drawable/edit_text_bg"
        float:fletPadding="5dp">

        <EditText
            android:id="@+id/login_password"
            android:inputType="textPassword"
            android:hint="@string/password"
            android:gravity="bottom"
            android:imeOptions="actionDone"
            android:layout_gravity="bottom"
            style="@style/ncv_edit_text_style"/>
    </com.wrapp.floatlabelededittext.FloatLabeledEditText>

style.xml