Advertisement
Guest User

Untitled

a guest
Sep 13th, 2013
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical"
  7. tools:context=".TomActivity" >
  8.  
  9. <TextView
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:layout_weight="0"
  13. android:background="#1123f1"
  14. android:gravity="center"
  15. android:text="Top Banner"
  16. android:textColor="@android:color/white"
  17. android:textSize="20sp" />
  18.  
  19. <RelativeLayout
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent"
  22. android:layout_margin="0dip"
  23. android:layout_weight="1"
  24. android:orientation="vertical" >
  25.  
  26. <RelativeLayout
  27. android:id="@+id/spinnerbox"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:layout_alignParentLeft="true"
  31. android:layout_alignParentRight="true"
  32. android:layout_alignParentTop="true"
  33. android:gravity="center_horizontal"
  34. android:onClick="left"
  35. android:orientation="horizontal" >
  36.  
  37. <Button
  38. android:id="@+id/leftarrow"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:layout_alignParentLeft="true"
  42. android:background="#888888"
  43. android:gravity="left"
  44. android:minHeight="0dip"
  45. android:minWidth="0dip"
  46. android:onClick="left"
  47. android:text="Button" />
  48.  
  49. <TextView
  50. android:id="@+id/spintitle"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:layout_centerInParent="true"
  54. android:layout_toEndOf="@+id/leftarrow"
  55. android:layout_toLeftOf="@+id/rightarrow"
  56. android:layout_toRightOf="@+id/leftarrow"
  57. android:layout_toStartOf="@+id/rightarrow"
  58. android:gravity="center"
  59. android:text="Label" />
  60.  
  61. <Button
  62. android:id="@+id/rightarrow"
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. android:layout_alignParentRight="true"
  66. android:background="#888888"
  67. android:gravity="right"
  68. android:minHeight="0dip"
  69. android:minWidth="0dip"
  70. android:onClick="right"
  71. android:text="Button" />
  72. </RelativeLayout>
  73.  
  74. <ViewFlipper
  75. android:id="@+id/view_flipper"
  76. android:layout_width="fill_parent"
  77. android:layout_height="fill_parent"
  78. android:layout_above="@+id/buttonbox"
  79. android:layout_alignParentLeft="true"
  80. android:layout_alignParentRight="true"
  81. android:layout_below="@+id/spinnerbox"
  82. android:layout_margin="0dip" >
  83.  
  84. <LinearLayout
  85. android:layout_width="fill_parent"
  86. android:layout_height="fill_parent"
  87. android:layout_margin="0dip"
  88. android:gravity="center" >
  89.  
  90. <ListView
  91. android:id="@+id/CoursesView"
  92. android:layout_width="match_parent"
  93. android:layout_height="wrap_content"
  94. android:layout_margin="0dip"
  95. android:layout_weight="1"
  96. android:background="#ffffff" >
  97. </ListView>
  98. </LinearLayout>
  99.  
  100. <LinearLayout
  101. android:layout_width="fill_parent"
  102. android:layout_height="fill_parent"
  103. android:layout_margin="0dip"
  104. android:gravity="center" >
  105.  
  106. <ListView
  107. android:id="@+id/FutureCoursesView"
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:layout_margin="0dip"
  111. android:layout_weight="1"
  112. android:background="#ffffff" >
  113. </ListView>
  114. </LinearLayout>
  115.  
  116. <LinearLayout
  117. android:layout_width="fill_parent"
  118. android:layout_height="fill_parent"
  119. android:layout_margin="0dip"
  120. android:gravity="center" >
  121.  
  122. <ListView
  123. android:id="@+id/MessagesView"
  124. android:layout_width="match_parent"
  125. android:layout_height="wrap_content"
  126. android:layout_margin="0dip"
  127. android:layout_weight="1"
  128. android:background="#ffffff" >
  129. </ListView>
  130. </LinearLayout>
  131. </ViewFlipper>
  132.  
  133. <LinearLayout
  134. android:id="@+id/buttonbox"
  135. android:layout_width="match_parent"
  136. android:layout_height="wrap_content"
  137. android:layout_alignParentBottom="true"
  138. android:layout_alignParentLeft="true"
  139. android:layout_alignParentRight="true"
  140. android:orientation="horizontal" >
  141.  
  142. <Button
  143. android:id="@+id/CurrentCoursesButton"
  144. android:layout_width="fill_parent"
  145. android:layout_height="wrap_content"
  146. android:layout_weight="1"
  147. android:background="#888888"
  148. android:text="Button" />
  149.  
  150. <Button
  151. android:id="@+id/FutureCoursesButton"
  152. android:layout_width="fill_parent"
  153. android:layout_height="wrap_content"
  154. android:layout_weight="1"
  155. android:background="#888888"
  156. android:text="Button" />
  157.  
  158. <Button
  159. android:id="@+id/UnreadMessagesButton"
  160. android:layout_width="fill_parent"
  161. android:layout_height="wrap_content"
  162. android:layout_weight="1"
  163. android:background="#888888"
  164. android:text="Button" />
  165.  
  166. <Button
  167. android:id="@+id/RefreshButton"
  168. android:layout_width="fill_parent"
  169. android:layout_height="wrap_content"
  170. android:layout_weight="1"
  171. android:background="#888888"
  172. android:onClick="refreshAll"
  173. android:text="Button" />
  174.  
  175. <Button
  176. android:id="@+id/LogoffButton"
  177. android:layout_width="fill_parent"
  178. android:layout_height="wrap_content"
  179. android:layout_weight="1"
  180. android:background="#888888"
  181. android:onClick="logOff"
  182. android:text="Button" />
  183. </LinearLayout>
  184. </RelativeLayout>
  185.  
  186. <TextView
  187. android:layout_width="match_parent"
  188. android:layout_height="wrap_content"
  189. android:layout_weight="0"
  190. android:background="#1123f1"
  191. android:gravity="center"
  192. android:text="Bottom Banner"
  193. android:textColor="@android:color/white"
  194. android:textSize="20sp" />
  195.  
  196. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement