Guest User

RelativeLayout two button name dialog

a guest
Jul 6th, 2011
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.69 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    android:layout_width="fill_parent"
  5.    android:layout_height="fill_parent">
  6.     <LinearLayout
  7.        android:layout_width="fill_parent"
  8.        android:layout_height="wrap_content"
  9.        android:gravity="center_horizontal"
  10.        android:layout_alignParentBottom="true">
  11.         <Button
  12.            style="@style/Theme.Button.Dual"
  13.            android:id="@+id/generic_name_editor_positive"
  14.            android:text="@string/generic_name_editor_button_positive" />
  15.         <Button
  16.            style="@style/Theme.Button.Dual"
  17.            android:id="@+id/generic_name_editor_negative"
  18.            android:text="@string/generic_name_editor_button_negative" />
  19.     </LinearLayout>
  20.     <ScrollView
  21.        android:layout_width="fill_parent"
  22.        android:layout_height="fill_parent"
  23.        android:layout_alignParentTop="true">
  24.         <RelativeLayout
  25.            android:layout_width="fill_parent"
  26.            android:layout_height="wrap_content">
  27.             <TextView
  28.                android:id="@+id/generic_name_editor_label"
  29.                android:layout_width="wrap_content"
  30.                android:layout_height="wrap_content"
  31.                android:text="@string/generic_name_editor_label" />
  32.             <EditText
  33.                android:id="@+id/generic_name_editor_edit"
  34.                android:layout_height="wrap_content"
  35.                android:layout_width="fill_parent"
  36.                style="@style/Theme.EditText"
  37.                android:layout_below="@id/generic_name_editor_label" />
  38.         </RelativeLayout>
  39.     </ScrollView>
  40. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment