android - How do I place the text inside an EditText widget at the top? -
i have following xml edittext , button take whole screen. problem can't find way make typed text in edittext put @ top. right it's put in centre of edittext.
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:background="@drawable/herinnering_background" android:layout_width="fill_parent" android:layout_height="fill_parent"> <edittext android:id="@+id/invoertekst" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1" android:hint="@string/prompt_tekst" /> <button android:id="@+id/klaar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0" android:text="@string/action_sla_op" android:background="@drawable/main_button_over" android:textcolor="#ffffff" android:layout_margin="5dip" android:layout_below="@id/invoertekst" /> </linearlayout>
add android:gravity="top"
attribute edittext
.
Comments
Post a Comment