EditText - Gap between text and EditText's line

寵の児 提交于 2019-12-04 23:52:14
Kishan Vaghela

To change gap between EditText text and bottom line you can use android:paddingBottom

<EditText
     android:id="@+id/nameEditText"
     style="@style/DarkEditText"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:hint="@string/name"
     android:paddingBottom="20dp"/>

Replace paddingBottom value as per your requirement.

Karakuri

Try

android:layout_height="wrap_content"

instead of

android:layout_height="match_parent" on your EditText.

Sushant Deshpande

Try adding padding to edit text

<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:padding="10dp"
    android:hint="Hint"/>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!