Try it by removing android:padding="0dp". I got correct view.
EditText spacing looks odd
-
12-07-2023 - |
Pergunta
I added an EditText to the layout, the layout contain this:
<EditText
android:id="@+id/edit_cause_details"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:maxLines="4"
android:padding="0dp"
android:hint="@string/cause_other_hint"
android:layout_weight="2"/>
and the result is this:
1) the vertical space between the actual text (hint) to the line representing the EditText is to big (the vertical red line)
2) the horizontal space between the EditText border to the actual text (hint) is too small, should be idented a bit more.. (the horizontal red line)
How can I fix this to look nicer?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow