android - How can I position control at end of activity? -
i want add control @ end of activity, there activity xml file, need note_date @ end of activity.
thank all.
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <edittext android:id="@+id/note_title" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/note_title_hint" /> <edittext android:id="@+id/note_body" android:layout_width="match_parent" android:layout_height="401dp" android:gravity="top" android:hint="@string/note_body_hint" android:inputtype="textmultiline" > <requestfocus /> </edittext> <edittext android:id="@+id/note_date" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/note_date_hint" android:inputtype="datetime" />
try this
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/note_date" android:orientation="vertical" > </linearlayout> <edittext android:id="@+id/note_date" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:ems="10" > <requestfocus /> </edittext>
Comments
Post a Comment