dialog_editview.xml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. android:orientation="vertical">
  6. <LinearLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content"
  9. android:layout_centerInParent="true"
  10. android:background="@drawable/dialog_bg"
  11. android:orientation="vertical">
  12. <TextView
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:layout_gravity="center_horizontal"
  16. android:layout_margin="@dimen/space_20"
  17. android:gravity="center"
  18. android:text="@string/dialog_system_show"
  19. android:textColor="@color/black"
  20. android:textSize="@dimen/text_size_20" />
  21. <TextView
  22. android:id="@+id/txt_dialog_prompt"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_marginBottom="@dimen/space_15"
  26. android:layout_marginLeft="@dimen/space_20"
  27. android:text="@string/fragment_dialog_change_name_text"
  28. android:textSize="@dimen/text_size_14" />
  29. <EditText
  30. android:id="@+id/ed_input_text"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_marginLeft="@dimen/space_20"
  34. android:layout_marginRight="@dimen/space_20"
  35. android:textColor="@color/black" />
  36. <LinearLayout
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:layout_margin="@dimen/space_15"
  40. android:orientation="horizontal">
  41. <Button
  42. android:id="@+id/btn_resume"
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:layout_margin="5dip"
  46. android:layout_weight="1"
  47. android:background="@color/dialog_bg_blue"
  48. android:padding="@dimen/space_10"
  49. android:text="@string/str_resume"
  50. android:textColor="@color/white"
  51. android:textSize="@dimen/text_size_15" />
  52. <Button
  53. android:id="@+id/btn_cancel"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:layout_margin="5dip"
  57. android:layout_weight="1"
  58. android:background="@color/dialog_bg"
  59. android:padding="@dimen/space_10"
  60. android:text="@string/str_cancel"
  61. android:textColor="@color/dialog_bg_blue"
  62. android:textSize="@dimen/text_size_15" />
  63. </LinearLayout>
  64. </LinearLayout>
  65. </RelativeLayout>