custom_shirtcuts.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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="wrap_content"
  6. android:padding="10dip">
  7. <TextView android:id="@+id/header"
  8. android:layout_width="fill_parent"
  9. android:layout_height="wrap_content"
  10. android:layout_alignParentTop="true"
  11. android:text="@string/shirtcut_header"
  12. />
  13. <Button android:id="@+id/pick_activity"
  14. android:text="@string/shirtcut_pick_activity"
  15. android:layout_height="wrap_content"
  16. android:layout_width="fill_parent"
  17. android:layout_below="@id/header"
  18. />
  19. <ImageButton android:id="@+id/pick_icon"
  20. android:src="@drawable/ic_launcher_shortcut"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:layout_below="@id/pick_activity"
  24. android:layout_alignParentLeft="true"
  25. />
  26. <EditText android:id="@+id/shirtcut_label"
  27. android:layout_width="fill_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_below="@id/pick_activity"
  30. android:layout_toRightOf="@id/pick_icon"
  31. android:layout_centerHorizontal="true"
  32. android:text="@string/shirtcut_label"
  33. />
  34. <LinearLayout
  35. android:layout_height="wrap_content"
  36. android:layout_width="fill_parent"
  37. android:orientation="horizontal"
  38. android:layout_below="@id/pick_icon" >
  39. <Button android:id="@+id/shirtcut_ok"
  40. android:text="@android:string/ok"
  41. android:layout_height="wrap_content"
  42. android:layout_width="wrap_content"
  43. android:layout_weight="1"
  44. />
  45. <Button android:id="@+id/shirtcut_revert"
  46. android:text="@string/shirtcuts_revert"
  47. android:layout_height="wrap_content"
  48. android:layout_width="wrap_content"
  49. android:layout_weight="1"
  50. android:visibility="gone"
  51. />
  52. </LinearLayout>
  53. </RelativeLayout>