I have used a RichEditText for using the bold and italics to the editText, now the floating hint is not working in the edittext.
RichEditText is a third party library to rich text features to the edit text.
my xml code
<android.support.design.widget.TextInputLayout
android:id="@+id/tilPostArticleTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/checkTextview"
android:paddingTop="8dp">
<com.fiberlink.maas360.android.richtexteditor.RichEditText
android:id="@+id/titleEdittext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginLeft="0dp"
android:layout_marginRight="0dp"
android:layout_marginTop="5dp"
android:focusable="false"
android:background="@android:color/transparent"
android:gravity="left"
android:inputType="textPersonName"
android:minHeight="40dp"
android:textSize="15sp"
android:paddingTop="6dp"
android:paddingLeft="16dp"
android:paddingBottom="8dp"
android:textColorHint="#228B22" />
</android.support.design.widget.TextInputLayout>
And in java
mRichEditText = (RichEditText) findViewById(R.id.titleEdittext);
mRichEditText.setHint("Title");
I have set the hint via java because setting hint in xml was not working.
How can I implement the floating hint?