I have an EditText in a RelativeLayout where the tops of the text in the EditText are getting cutoff. I have tried increasing the padding for the EditText, but even at 20dp, the text still gets clipped.
I tried to post an image here, but apparently I don't have enough of a reputation for stackoverflow to allow me to post one. Imagine a lined paper with a dotted line horizontally in the middle like you had in grade school. The text gets clipped for anything above the dotted line.
Here is my layout.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<RelativeLayout android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView android:id="@+id/questionTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="0dp"
android:layout_marginLeft="10dp"
android:textSize="16dp"
android:text="Audit Question"/>
<RadioButton android:id="@+id/answerRadioButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/questionTextView"
android:layout_alignLeft="@id/questionTextView"
android:layout_marginTop="5dp"
android:checked="true"
android:textSize="16dp"
android:text="audit answer"/>
<EditText android:id="@+id/commentEditText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/answerRadioButton"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginBottom="10dp"
android:padding="20dp" />
</RelativeLayout>
Any help would be greatly appreciated.