Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 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:id="@+id/add_mood_layout"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:orientation="vertical">
  8.  
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:layout_marginEnd="@dimen/activity_horizontal_margin"
  13. android:layout_marginStart="@dimen/activity_horizontal_margin"
  14. android:orientation="horizontal">
  15.  
  16. <TextView
  17. android:id="@+id/because_text"
  18. style="@style/TextAppearance.AppCompat.Subhead"
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:maxLines="1"
  22. android:text="@string/because" />
  23.  
  24. <EditText
  25. android:id="@+id/moodCommentEditText"
  26. style="@style/Base.TextAppearance.AppCompat.Body1"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_marginStart="8dp"
  30. android:hint="@string/add_a_comment_here" />
  31.  
  32. </LinearLayout>
  33.  
  34. <!-- HIGHLIGHTED LAYOUT -->
  35. <LinearLayout
  36. android:layout_width="match_parent"
  37. android:layout_height="match_parent"
  38. android:weightSum="3"
  39. android:orientation="vertical"
  40. android:paddingEnd="@dimen/activity_vertical_margin"
  41. android:paddingStart="@dimen/activity_vertical_margin">
  42.  
  43. <LinearLayout
  44. android:layout_width="match_parent"
  45. android:layout_height="0dp"
  46. android:layout_weight="1"
  47. android:orientation="horizontal">
  48.  
  49. <TextView
  50. android:id="@+id/happy_text"
  51. style="@style/TextAppearance.AppCompat.Subhead"
  52. tools:text="Unhappy"
  53. android:layout_width="65sp"
  54. android:layout_height="wrap_content"
  55. android:maxLines="1" />
  56.  
  57. <SeekBar
  58. android:id="@+id/happiness_seekbar"
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content"
  61. android:max="100"
  62. android:theme="@style/happinessSeekbarTheme" />
  63.  
  64. </LinearLayout>
  65.  
  66. <LinearLayout
  67. android:layout_width="match_parent"
  68. android:layout_height="0dp"
  69. android:layout_weight="1">
  70.  
  71. <TextView
  72. android:id="@+id/stress_text"
  73. style="@style/TextAppearance.AppCompat.Subhead"
  74. android:layout_width="65sp"
  75. android:layout_height="wrap_content"
  76.  
  77. android:maxLines="1"
  78. android:text="@string/stress" />
  79.  
  80. <SeekBar
  81. android:id="@+id/stress_seekbar"
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:max="100"
  85. android:theme="@style/stressSeekbarTheme" />
  86. </LinearLayout>
  87.  
  88. <LinearLayout
  89. android:layout_width="match_parent"
  90. android:layout_height="0dp"
  91. android:layout_weight="1">
  92.  
  93. <TextView
  94. android:id="@+id/pain_text"
  95. style="@style/TextAppearance.AppCompat.Subhead"
  96. android:layout_width="65sp"
  97. android:layout_height="wrap_content"
  98. android:maxLines="1"
  99. android:text="@string/pain" />
  100.  
  101. <SeekBar
  102. android:id="@+id/pain_seekbar"
  103. android:layout_width="match_parent"
  104. android:layout_height="wrap_content"
  105. android:max="100"
  106. android:maxHeight="3dp"
  107. android:theme="@style/painSeekbarTheme" />
  108.  
  109. </LinearLayout>
  110.  
  111. </LinearLayout>
  112.  
  113. <Button
  114. android:id="@+id/saveButton"
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"
  117. android:layout_gravity="center"
  118. android:background="@android:color/transparent"
  119. android:text="@string/save"
  120. android:textColor="@color/colorPrimary"
  121. android:textSize="15dp" />
  122. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement