android - There is any possibility to approach label with EditText in TextInputLayout? -
when put 2 or 3 textinputlayout, label seams link graphically previous edittext instead of next. need put margintop textinputlayout. there possibility approach label edittext?
<android.support.design.widget.textinputlayout android:layout_width="match_parent" android:layout_height="wrap_content" > <edittext android:id="@+id/name" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/name" android:inputtype="textcapwords" /> </android.support.design.widget.textinputlayout>
in example can see margin hint , edittext
changing paddingtop
of edittext
should fix it, example:
<android.support.design.widget.textinputlayout android:layout_width="match_parent" android:layout_height="wrap_content" > <edittext android:id="@+id/name" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingtop="0dp" android:hint="@string/name" android:inputtype="textcapwords" /> </android.support.design.widget.textinputlayout>
Comments
Post a Comment