activity_create_event_screen1.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context="com.example.yiupang.freefoodfinder.CreateEventScreen1">
  8. <TextView
  9. android:id = "@+id/creatorTitle"
  10. android:layout_width="80dp"
  11. android:layout_height="wrap_content"
  12. android:text="Creator:"
  13. android:layout_column="0"
  14. android:layout_row="0"/>
  15. <TextView
  16. android:id = "@+id/titleTitle"
  17. android:layout_width="80dp"
  18. android:layout_height="wrap_content"
  19. android:text="Title:"
  20. android:layout_column="0"
  21. android:layout_row="1"/>
  22. <TextView
  23. android:id="@+id/dateTitle"
  24. android:layout_width="80dp"
  25. android:layout_height="wrap_content"
  26. android:text="Date:"
  27. android:ems="10"
  28. android:layout_column="0"
  29. android:layout_row="2"
  30. />
  31. <TextView
  32. android:id="@+id/timeTitle"
  33. android:layout_width="80dp"
  34. android:layout_height="wrap_content"
  35. android:text="Time:"
  36. android:layout_column="0"
  37. android:layout_row="3" />
  38. <TextView
  39. android:id="@+id/placeTitle"
  40. android:layout_width="80dp"
  41. android:layout_height="wrap_content"
  42. android:text="Place:"
  43. android:layout_column="0"
  44. android:layout_row="4" />
  45. <TextView
  46. android:id="@+id/foodTitle"
  47. android:layout_width="80dp"
  48. android:layout_height="wrap_content"
  49. android:text="Food:"
  50. android:layout_column="0"
  51. android:layout_row="5" />
  52. <TextView
  53. android:id="@+id/descTitle"
  54. android:layout_width="80dp"
  55. android:layout_height="wrap_content"
  56. android:text="Description:"
  57. android:layout_column="0"
  58. android:layout_row="6" />
  59. <EditText
  60. android:id="@+id/creatortext"
  61. android:layout_width="255dp"
  62. android:layout_height="wrap_content"
  63. android:layout_column="1"
  64. android:layout_row="0"
  65. android:ems="10"
  66. android:inputType="textPersonName" />
  67. <EditText
  68. android:id="@+id/titletext"
  69. android:layout_width="255dp"
  70. android:layout_height="wrap_content"
  71. android:layout_column="1"
  72. android:layout_row="1"
  73. android:ems="10"
  74. android:inputType="textPersonName" />
  75. <EditText
  76. android:id="@+id/datetext"
  77. android:layout_width="255dp"
  78. android:layout_height="wrap_content"
  79. android:layout_column="1"
  80. android:layout_row="2"
  81. android:ems="10"
  82. android:inputType="textPersonName" />
  83. <EditText
  84. android:id="@+id/timetext"
  85. android:layout_width="255dp"
  86. android:layout_height="wrap_content"
  87. android:layout_column="1"
  88. android:layout_row="3"
  89. android:ems="10"
  90. android:inputType="textPersonName" />
  91. <EditText
  92. android:id="@+id/placetext"
  93. android:layout_width="255dp"
  94. android:layout_height="wrap_content"
  95. android:layout_column="1"
  96. android:layout_row="4"
  97. android:ems="10"
  98. android:inputType="textPersonName" />
  99. <EditText
  100. android:id="@+id/foodtext"
  101. android:layout_width="255dp"
  102. android:layout_height="wrap_content"
  103. android:layout_column="1"
  104. android:layout_row="5"
  105. android:ems="10"
  106. android:inputType="textPersonName" />
  107. <EditText
  108. android:id="@+id/descriptiontext"
  109. android:layout_width="255dp"
  110. android:layout_height="wrap_content"
  111. android:layout_column="1"
  112. android:layout_row="6"
  113. android:ems="10"
  114. android:inputType="textPersonName" />
  115. <Button
  116. android:id="@+id/button_create"
  117. android:layout_width="wrap_content"
  118. android:layout_height="wrap_content"
  119. android:layout_column="1"
  120. android:layout_row="7"
  121. android:text = "Create Event" />
  122. </GridLayout>