EditText Button?
.
, linearlayout xml . , Relative layout . , .
android: , , , . ...
- id android: id = "@+ id/GiveName"
, android: layout_toLeftOf = "@id/givenname"
, , = id , .
Ex.
xml ,
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/llWriteCommentWall" android:layout_height="fill_parent"
android:layout_width="fill_parent" android:background="#ffffff">
<Button android:id="@+id/btButtonComments"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="Comments"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"/>
<EditText android:id="@+id/etEdittext"
android:layout_height="wrap_content" android:layout_width="fill_parent"
android:hint="Write a comment.... "
android:layout_marginLeft="2dip" android:layout_marginRight="2dip"
android:layout_toLeftOf="@id/btButtonComments"
android:layout_alignParentBottom="true"/>
</RelativeLayout>
ScreenShot


android: layout_alignParentBottom = "true" - , , .it , true .
- android: layout_alignParentRight = "true", android: layout_alignParentLeft = "true", android: layout_alignParentTop = "true" -all .
, XML java setContentView (xmlFileName)