<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/bkgrndclr">
<Button
android="@+id/imgbtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Search Images"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" />
<Button
android="@id/imgbtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Search Web"
android:layout_alignBottom="@id/imgbtn"
android:layout_toLeftOf="@id/imgbtn" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/imgbtn"
android:layout_alignRight="@id/imgbtn" />
</LinearLayout>
I set my buttons to the bottom of the view and the textbox above them but why all display linearly. The button Search Images is displayed first then the Search Web then The textbox and they are not located at the bottom, which is not what I want.
You haven’t described what you do want… But I took a guess that you want a layout on the bottom of the screen like this:
Layout: