main.xml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent"
  6. android:padding="@dimen/margin"
  7. android:background="@color/screen_background">
  8. <LinearLayout android:id="@+id/row_1"
  9. android:orientation="horizontal"
  10. android:layout_width="fill_parent"
  11. android:layout_height="wrap_content"
  12. android:paddingBottom="@dimen/row_spacing">
  13. <LinearLayout android:id="@+id/box_steps"
  14. android:orientation="vertical"
  15. android:layout_width="fill_parent"
  16. android:layout_height="wrap_content"
  17. android:gravity="center_horizontal"
  18. android:paddingRight="@dimen/margin"
  19. android:layout_weight="1">
  20. <TextView android:id="@+id/step_value"
  21. android:textSize="@dimen/value"
  22. android:layout_width="fill_parent"
  23. android:layout_height="wrap_content"
  24. android:gravity="center_horizontal"
  25. android:background="@color/display_background"
  26. android:paddingLeft="@dimen/padding"
  27. android:paddingRight="@dimen/padding"
  28. android:paddingTop="@dimen/padding"
  29. android:text=""/>
  30. <TextView android:id="@+id/step_units"
  31. android:gravity="center_horizontal"
  32. android:layout_width="fill_parent"
  33. android:layout_height="wrap_content"
  34. android:textSize="@dimen/units"
  35. android:text="@string/steps"
  36. android:background="@color/display_background"
  37. android:paddingBottom="@dimen/padding"/>
  38. </LinearLayout>
  39. <LinearLayout android:id="@+id/box_distance"
  40. android:orientation="vertical"
  41. android:layout_width="fill_parent"
  42. android:layout_height="wrap_content"
  43. android:gravity="center_horizontal"
  44. android:layout_weight="1">
  45. <TextView android:id="@+id/distance_value"
  46. android:textSize="@dimen/value"
  47. android:layout_width="fill_parent"
  48. android:layout_height="wrap_content"
  49. android:gravity="center_horizontal"
  50. android:background="@color/display_background"
  51. android:paddingTop="@dimen/padding"
  52. android:paddingRight="@dimen/padding"
  53. android:paddingLeft="@dimen/padding"
  54. android:text=""/>
  55. <TextView android:id="@+id/distance_units"
  56. android:gravity="center_horizontal"
  57. android:layout_width="fill_parent"
  58. android:layout_height="wrap_content"
  59. android:textSize="@dimen/units"
  60. android:text="@string/kilometers"
  61. android:background="@color/display_background"
  62. android:paddingBottom="@dimen/padding"/>
  63. </LinearLayout>
  64. </LinearLayout>
  65. <LinearLayout android:id="@+id/row_2"
  66. android:orientation="horizontal"
  67. android:layout_width="fill_parent"
  68. android:layout_height="wrap_content"
  69. android:paddingBottom="@dimen/row_spacing">
  70. <LinearLayout android:id="@+id/box_pace"
  71. android:orientation="vertical"
  72. android:layout_height="wrap_content"
  73. android:paddingRight="@dimen/margin"
  74. android:layout_width="fill_parent"
  75. android:layout_weight="1">
  76. <TextView android:id="@+id/pace_value"
  77. android:gravity="center_horizontal"
  78. android:layout_width="fill_parent"
  79. android:layout_height="wrap_content"
  80. android:background="@color/display_background"
  81. android:textSize="@dimen/small_value"
  82. android:paddingLeft="@dimen/padding"
  83. android:paddingRight="@dimen/padding"
  84. android:paddingTop="@dimen/padding"
  85. android:text=""/>
  86. <TextView android:id="@+id/pace_units"
  87. android:gravity="center_horizontal"
  88. android:layout_width="fill_parent"
  89. android:layout_height="wrap_content"
  90. android:textSize="@dimen/units"
  91. android:text="@string/steps_per_minute"
  92. android:paddingBottom="@dimen/padding"
  93. android:background="@color/display_background"/>
  94. </LinearLayout>
  95. <LinearLayout android:id="@+id/box_speed"
  96. android:orientation="vertical"
  97. android:paddingRight="@dimen/margin"
  98. android:layout_height="wrap_content"
  99. android:layout_width="fill_parent"
  100. android:layout_weight="1">
  101. <TextView android:id="@+id/speed_value"
  102. android:gravity="center_horizontal"
  103. android:layout_width="fill_parent"
  104. android:layout_height="wrap_content"
  105. android:background="@color/display_background"
  106. android:textSize="@dimen/small_value"
  107. android:paddingLeft="@dimen/padding"
  108. android:paddingRight="@dimen/padding"
  109. android:paddingTop="@dimen/padding"
  110. android:text=""/>
  111. <TextView android:id="@+id/speed_units"
  112. android:gravity="center_horizontal"
  113. android:layout_width="fill_parent"
  114. android:layout_height="wrap_content"
  115. android:textSize="@dimen/units"
  116. android:text="@string/kilometers_per_hour"
  117. android:paddingBottom="@dimen/padding"
  118. android:background="@color/display_background"/>
  119. </LinearLayout>
  120. <LinearLayout android:id="@+id/box_calories"
  121. android:orientation="vertical"
  122. android:layout_height="wrap_content"
  123. android:layout_width="fill_parent"
  124. android:layout_weight="1">
  125. <TextView android:id="@+id/calories_value"
  126. android:gravity="center_horizontal"
  127. android:layout_width="fill_parent"
  128. android:layout_height="wrap_content"
  129. android:background="@color/display_background"
  130. android:textSize="@dimen/small_value"
  131. android:paddingLeft="@dimen/padding"
  132. android:paddingRight="@dimen/padding"
  133. android:paddingTop="@dimen/padding"
  134. android:text=""/>
  135. <TextView android:id="@+id/calories_units"
  136. android:gravity="center_horizontal"
  137. android:layout_width="fill_parent"
  138. android:layout_height="wrap_content"
  139. android:textSize="@dimen/units"
  140. android:text="@string/calories_burned"
  141. android:paddingBottom="@dimen/padding"
  142. android:background="@color/display_background"/>
  143. </LinearLayout>
  144. </LinearLayout>
  145. <!-- Desired pace/speed row -->
  146. <LinearLayout
  147. android:id="@+id/desired_pace_control"
  148. android:paddingTop="@dimen/row_spacing"
  149. android:gravity="center_horizontal"
  150. android:orientation="horizontal"
  151. android:layout_width="fill_parent"
  152. android:layout_height="wrap_content"
  153. android:layout_weight="1">
  154. <!-- Button "-", for decrementing desired pace/speed -->
  155. <Button android:id="@+id/button_desired_pace_lower"
  156. android:text="-"
  157. android:textSize="@dimen/button_sign"
  158. android:layout_width="@dimen/button"
  159. android:layout_height="@dimen/button"/>
  160. <!-- Container for desired pace/speed -->
  161. <LinearLayout
  162. android:gravity="center_horizontal"
  163. android:orientation="vertical"
  164. android:layout_width="@dimen/desired_pace_width"
  165. android:layout_height="wrap_content">
  166. <TextView android:id="@+id/desired_pace_label"
  167. android:gravity="center_horizontal"
  168. android:layout_width="fill_parent"
  169. android:layout_height="wrap_content"
  170. android:text="@string/desired_pace"/>
  171. <!-- Current desired pace/speed -->
  172. <TextView android:id="@+id/desired_pace_value"
  173. android:gravity="center_horizontal"
  174. android:textSize="@dimen/desired_pace"
  175. android:layout_width="@dimen/desired_pace_width"
  176. android:layout_height="wrap_content"/>
  177. </LinearLayout>
  178. <!-- Button "+", for incrementing desired pace/speed -->
  179. <Button android:id="@+id/button_desired_pace_raise"
  180. android:text="+"
  181. android:textSize="@dimen/button_sign"
  182. android:layout_width="@dimen/button"
  183. android:layout_height="@dimen/button"/>
  184. </LinearLayout>
  185. </LinearLayout>