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: EditText result

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?

有帮助吗?

解决方案

Try it by removing android:padding="0dp". I got correct view.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top