Guest User

LinerLayout two button name dialog

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