This is the home of the new hsoApp!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
7.3KB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".HomeFragment">
  8. <android.support.constraint.ConstraintLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent">
  11. <android.support.v7.widget.CardView
  12. android:id="@+id/cardView"
  13. android:layout_width="0dp"
  14. android:layout_height="125dp"
  15. android:layout_marginStart="8dp"
  16. android:layout_marginTop="8dp"
  17. android:layout_marginEnd="8dp"
  18. android:clickable="false"
  19. android:maxHeight="125dp"
  20. app:cardCornerRadius="15dp"
  21. app:cardUseCompatPadding="true"
  22. app:layout_constraintEnd_toEndOf="parent"
  23. app:layout_constraintHorizontal_bias="1.0"
  24. app:layout_constraintStart_toStartOf="parent"
  25. app:layout_constraintTop_toTopOf="parent">
  26. <LinearLayout
  27. android:orientation="vertical"
  28. android:layout_width="match_parent"
  29. android:layout_height="match_parent">
  30. <TextView
  31. android:text="@string/essen_1"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content" android:id="@+id/txtView_Menu1Heading"
  34. android:textStyle="bold" android:textAlignment="center" android:textSize="16sp"
  35. android:typeface="sans" android:fontFamily="sans-serif" android:paddingBottom="5dp"/>
  36. <TextView
  37. android:id="@+id/txtView_Menu1"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:fontFamily="sans-serif"
  41. android:textAlignment="center"
  42. android:textSize="16sp"
  43. android:textStyle="bold"
  44. android:typeface="sans"/>
  45. </LinearLayout>
  46. </android.support.v7.widget.CardView>
  47. <android.support.v7.widget.CardView
  48. android:id="@+id/cardView2"
  49. android:layout_width="0dp"
  50. android:layout_height="125dp"
  51. android:layout_marginStart="8dp"
  52. android:layout_marginEnd="8dp"
  53. app:cardCornerRadius="15dp"
  54. app:cardUseCompatPadding="true"
  55. app:layout_constraintEnd_toEndOf="parent"
  56. app:layout_constraintHorizontal_bias="1.0"
  57. app:layout_constraintStart_toStartOf="parent"
  58. app:layout_constraintTop_toBottomOf="@+id/cardView">
  59. <LinearLayout
  60. android:orientation="vertical"
  61. android:layout_width="match_parent"
  62. android:layout_height="match_parent">
  63. <TextView
  64. android:text="@string/essen_2"
  65. android:layout_width="match_parent"
  66. android:layout_height="wrap_content" android:id="@+id/txtView_Menu2Heading"
  67. android:textAlignment="center" android:textStyle="bold" android:textSize="16sp"
  68. android:typeface="sans" android:fontFamily="sans-serif" android:paddingBottom="5dp"/>
  69. <TextView
  70. android:id="@+id/txtView_Menu2"
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content"
  73. android:fontFamily="sans-serif"
  74. android:textAlignment="center"
  75. android:textSize="16sp"
  76. android:textStyle="bold"
  77. android:typeface="sans"/>
  78. </LinearLayout>
  79. </android.support.v7.widget.CardView>
  80. <ScrollView
  81. android:layout_width="0dp"
  82. android:layout_height="0dp"
  83. android:layout_marginTop="12dp"
  84. android:background="@color/colorPrimary"
  85. app:layout_constraintBottom_toBottomOf="parent"
  86. app:layout_constraintEnd_toEndOf="parent"
  87. app:layout_constraintStart_toStartOf="parent"
  88. app:layout_constraintTop_toBottomOf="@+id/cardView2" android:id="@+id/scrollView_TimeTable">
  89. <LinearLayout
  90. android:id="@+id/linLayout_TimeTable"
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:orientation="vertical"
  94. android:paddingLeft="5dp"
  95. android:paddingRight="5dp"
  96. app:layout_constraintBottom_toBottomOf="parent"
  97. app:layout_constraintEnd_toEndOf="parent"
  98. app:layout_constraintStart_toStartOf="parent"
  99. app:layout_constraintTop_toBottomOf="@+id/cardView2">
  100. <android.support.v7.widget.CardView
  101. android:layout_width="match_parent"
  102. android:layout_height="80dp"
  103. app:cardBackgroundColor="@android:color/holo_red_light"
  104. app:cardCornerRadius="10dp"
  105. app:cardElevation="5dp"
  106. app:cardPreventCornerOverlap="true"
  107. app:cardUseCompatPadding="true"
  108. app:contentPadding="5dp">
  109. <LinearLayout
  110. android:layout_width="match_parent"
  111. android:layout_height="match_parent"
  112. android:orientation="horizontal">
  113. <TextView
  114. android:id="@+id/textView5"
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"
  117. android:text="@string/a_lesson"
  118. android:textColor="@android:color/primary_text_light"
  119. android:textSize="14sp"
  120. android:textStyle="bold"
  121. android:typeface="sans"/>
  122. <TextView
  123. android:id="@+id/textView6"
  124. android:layout_width="0dp"
  125. android:layout_height="wrap_content"
  126. android:layout_weight="1"
  127. android:gravity="end"
  128. android:text="@string/a_time"/>
  129. </LinearLayout>
  130. </android.support.v7.widget.CardView>
  131. <include
  132. layout="@layout/lesson_cardview"
  133. android:layout_width="match_parent"
  134. android:layout_height="match_parent"/>
  135. </LinearLayout>
  136. </ScrollView>
  137. </android.support.constraint.ConstraintLayout>
  138. </FrameLayout>