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> 

example

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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -