xml - Placing android button in a particular place -
i want place android button1 in specific place in android screen, depends on textview1 size showing in different places.
how can place android button in particular place
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".infoactivity" > <linearlayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignparentleft="true" android:layout_alignparentright="true" android:layout_alignparenttop="true" android:orientation="vertical" android:background="@drawable/backquiz"> <textview android:id="@+id/textview1" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/question1" android:text="large text" android:textappearance="?android:attr/textappearancelarge" /> <button android:id="@+id/button1" android:layout_width="match_parent" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancelarge" android:background="@drawable/next"/> </linearlayout> </relativelayout>
i need next button present in bottom.
use relative layout button. here link.
Comments
Post a Comment