fragment_timetable_detail.xml 14.3 KB
Newer Older
Filip Wiesner's avatar
Filip Wiesner committed
1
<?xml version="1.0" encoding="utf-8"?>
2 3
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
Filip Wiesner's avatar
Filip Wiesner committed
4 5 6
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
Filip Wiesner's avatar
Filip Wiesner committed
7
    android:background="@android:color/transparent"
8
    tools:context=".flows.detail.EventDetailFragment"
9
    android:clipToPadding="false">
10

Filip Wiesner's avatar
Filip Wiesner committed
11 12 13 14 15 16 17 18

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/detail_headerLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/colorPrimaryDark"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
19 20
        app:layout_constraintTop_toTopOf="parent"
        android:clipToPadding="false">
Filip Wiesner's avatar
Filip Wiesner committed
21 22 23 24 25

        <TextView
            android:id="@+id/detail_timeTxt"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
26 27 28
            android:layout_marginStart="8dp"
            android:layout_marginTop="12dp"
            android:layout_marginEnd="8dp"
Filip Wiesner's avatar
Filip Wiesner committed
29 30 31 32 33 34 35 36 37
            android:fontFamily="sans-serif-condensed"
            android:paddingStart="6dp"
            android:paddingTop="2dp"
            android:paddingEnd="6dp"
            android:paddingBottom="2dp"
            android:textColor="@android:color/white"
            android:textSize="18sp"
            android:textStyle="bold"
            app:layout_constraintEnd_toEndOf="parent"
38
            app:layout_constraintStart_toStartOf="parent"
Filip Wiesner's avatar
Filip Wiesner committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
            app:layout_constraintTop_toTopOf="parent"
            tools:text="12:34 - 13:56" />

        <TextView
            android:id="@+id/detail_codeName"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginBottom="42dp"
            android:fontFamily="sans-serif-condensed"
            android:gravity="start"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="@+id/detail_fullName"
            app:layout_constraintStart_toStartOf="@+id/detail_fullName"
            app:layout_constraintTop_toBottomOf="@+id/detail_fullName"
            tools:text="B6B33EAR " />

        <TextView
            android:id="@+id/detail_fullName"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="24dp"
60
            android:layout_marginTop="8dp"
Filip Wiesner's avatar
Filip Wiesner committed
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
            android:layout_marginEnd="8dp"
            android:fontFamily="sans-serif-condensed"
            android:text="{Course full name}"
            android:textColor="@android:color/white"
            android:textSize="24sp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/detail_abbr"
            app:layout_constraintTop_toBottomOf="@+id/detail_timeTxt"
            tools:text="Enterprise architektury" />

        <TextView
            android:id="@+id/detail_abbr"
            android:layout_width="70dp"
            android:layout_height="70dp"
            android:layout_marginStart="24dp"
            android:layout_marginTop="12dp"
            android:background="@drawable/ic_timetable_lecture"
            android:elevation="6dp"
79
            android:fontFamily="sans-serif-condensed"
Filip Wiesner's avatar
Filip Wiesner committed
80 81 82 83 84 85 86
            android:gravity="center"
            android:textColor="@android:color/white"
            android:textSize="24sp"
            app:layout_constraintBottom_toBottomOf="@+id/detail_fullName"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="@+id/detail_fullName"
            tools:text="EAR" />
87 88 89 90 91 92 93 94 95 96 97 98 99

        <ImageButton
            android:id="@+id/detail_pin"
            android:layout_width="32dp"
            android:layout_height="32dp"
            android:layout_marginTop="12dp"
            android:layout_marginEnd="12dp"
            android:background="?attr/selectableItemBackgroundBorderless"
            android:scaleType="fitXY"
            android:src="@drawable/ic_pin"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

Filip Wiesner's avatar
Filip Wiesner committed
100 101 102 103
    </androidx.constraintlayout.widget.ConstraintLayout>

    <LinearLayout
        android:id="@+id/detail_infoLinLayout"
104 105
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
Filip Wiesner's avatar
Filip Wiesner committed
106
        android:layout_marginStart="32dp"
107
        android:layout_marginTop="6dp"
Filip Wiesner's avatar
Filip Wiesner committed
108
        android:layout_marginEnd="32dp"
109
        android:layout_marginBottom="6dp"
Filip Wiesner's avatar
Filip Wiesner committed
110 111 112
        android:background="@drawable/rounded_corner"
        android:backgroundTint="@color/colorAccent"
        android:elevation="6dp"
113
        android:outlineProvider="paddedBounds"
Filip Wiesner's avatar
Filip Wiesner committed
114 115 116 117 118 119
        android:paddingStart="16dp"
        android:paddingTop="2dp"
        android:paddingEnd="16dp"
        android:paddingBottom="2dp"
        app:layout_constraintBottom_toBottomOf="@+id/detail_headerLayout"
        app:layout_constraintEnd_toEndOf="parent"
120
        app:layout_constraintStart_toStartOf="parent"
Filip Wiesner's avatar
Filip Wiesner committed
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
        app:layout_constraintTop_toBottomOf="@+id/detail_headerLayout">

        <TextView
            android:id="@+id/textView8"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:fontFamily="sans-serif"
            android:text="#"
            android:textColor="@android:color/white"
            android:textSize="28sp"
            android:textStyle="bold"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:layout_editor_absoluteX="46dp" />

        <TextView
            android:id="@+id/detail_sequenceNum"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginStart="4dp"
            android:fontFamily="sans-serif-condensed"
            android:gravity="center_vertical"
            android:textColor="@android:color/white"
            android:textSize="24sp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:layout_editor_absoluteX="102dp"
            tools:text="12" />

        <ImageView
            android:id="@+id/detail_lengthIc"
            android:layout_width="32dp"
            android:layout_height="32dp"
            android:layout_gravity="center_vertical"
            android:layout_marginStart="16dp"
            android:src="@drawable/ic_time"
            android:tint="@android:color/white"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:layout_editor_absoluteX="163dp" />

        <TextView
            android:id="@+id/detail_lengthTxt"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginStart="4dp"
            android:fontFamily="sans-serif-condensed"
            android:gravity="center_vertical"
            android:textColor="@android:color/white"
            android:textSize="24sp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:layout_editor_absoluteX="238dp"
            tools:text="60 min" />

        <ImageView
            android:id="@+id/detail_capacityIc"
            android:layout_width="32dp"
            android:layout_height="32dp"
            android:layout_gravity="center_vertical"
            android:layout_marginStart="16dp"
            android:layout_weight="1"
            android:src="@drawable/ic_people"
            android:tint="@android:color/white" />
Filip Wiesner's avatar
Filip Wiesner committed
188

Filip Wiesner's avatar
Filip Wiesner committed
189 190 191 192 193 194 195 196 197 198 199 200 201 202
        <TextView
            android:id="@+id/detail_capacityTxt"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginStart="4dp"
            android:layout_weight="1"
            android:fontFamily="sans-serif-condensed"
            android:textColor="@android:color/white"
            android:textSize="24sp"
            tools:text="24/60" />

    </LinearLayout>

203 204 205 206
    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
207 208
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
209
        app:layout_constraintTop_toBottomOf="@+id/detail_headerLayout">
Filip Wiesner's avatar
Filip Wiesner committed
210

211 212
        <LinearLayout
            android:id="@+id/detail_eventDetailsLayout"
Filip Wiesner's avatar
Filip Wiesner committed
213 214
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
215 216 217 218 219 220
            android:layout_marginStart="16dp"
            android:layout_marginTop="16dp"
            android:layout_marginEnd="16dp"
            android:orientation="vertical"
            android:paddingTop="32dp"
            android:paddingBottom="8dp">
Filip Wiesner's avatar
Filip Wiesner committed
221

222 223 224 225 226 227 228 229 230 231
            <TextView
                android:id="@+id/detail_teachersTitle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="2dp"
                android:fontFamily="sans-serif-condensed"
                android:text="Teachers"
                android:textAllCaps="false"
                android:textSize="16sp"
                android:textStyle="italic" />
Filip Wiesner's avatar
Filip Wiesner committed
232

233 234 235 236 237
            <View
                android:id="@+id/detail_teachersDivider"
                android:layout_width="match_parent"
                android:layout_height="1.5dp"
                android:background="?android:attr/listDivider" />
Filip Wiesner's avatar
Filip Wiesner committed
238

239 240 241 242 243 244 245 246 247 248 249 250 251
            <TextView
                android:id="@+id/detail_teachersContent"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="8dp"
                android:layout_marginEnd="8dp"
                android:fontFamily="sans-serif-condensed"
                android:gravity="end"
                android:lineSpacingExtra="4sp"
                android:textColor="@android:color/white"
                android:textSize="22sp"
                android:textStyle="bold"
                tools:text="Petr Křemen\nMartin Balík" />
Filip Wiesner's avatar
Filip Wiesner committed
252

253 254 255 256 257 258 259 260 261 262 263
            <TextView
                android:id="@+id/detail_parallelTitle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="12dp"
                android:layout_marginBottom="2dp"
                android:fontFamily="sans-serif-condensed"
                android:text="Parallel num."
                android:textAllCaps="false"
                android:textSize="16sp"
                android:textStyle="italic" />
Filip Wiesner's avatar
Filip Wiesner committed
264

265 266 267 268 269
            <View
                android:id="@+id/detail_parallelDivider"
                android:layout_width="match_parent"
                android:layout_height="1.5dp"
                android:background="?android:attr/listDivider" />
Filip Wiesner's avatar
Filip Wiesner committed
270

271 272 273 274 275 276 277 278 279 280 281 282
            <TextView
                android:id="@+id/detail_parallelContent"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="8dp"
                android:layout_marginEnd="8dp"
                android:fontFamily="sans-serif-condensed"
                android:gravity="end"
                android:textColor="@android:color/white"
                android:textSize="22sp"
                android:textStyle="bold"
                tools:text="71" />
Filip Wiesner's avatar
Filip Wiesner committed
283

284 285 286 287 288 289 290 291 292 293 294
            <TextView
                android:id="@+id/detail_roomTitle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="12dp"
                android:layout_marginBottom="2dp"
                android:fontFamily="sans-serif-condensed"
                android:text="Room"
                android:textAllCaps="false"
                android:textSize="16sp"
                android:textStyle="italic" />
Filip Wiesner's avatar
Filip Wiesner committed
295

296 297 298 299 300
            <View
                android:id="@+id/detail_roomDivider"
                android:layout_width="match_parent"
                android:layout_height="1.5dp"
                android:background="?android:attr/listDivider" />
Filip Wiesner's avatar
Filip Wiesner committed
301

302 303 304 305 306 307 308 309 310 311 312 313
            <TextView
                android:id="@+id/detail_roomContent"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="8dp"
                android:layout_marginEnd="8dp"
                android:fontFamily="sans-serif-condensed"
                android:gravity="end"
                android:textColor="@android:color/white"
                android:textSize="22sp"
                android:textStyle="bold"
                tools:text="T2:C3-337" />
Filip Wiesner's avatar
Filip Wiesner committed
314

315 316 317 318 319 320 321 322 323 324 325
            <TextView
                android:id="@+id/detail_noteTitle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="12dp"
                android:layout_marginBottom="2dp"
                android:fontFamily="sans-serif-condensed"
                android:text="Note"
                android:textAllCaps="false"
                android:textSize="16sp"
                android:textStyle="italic" />
Filip Wiesner's avatar
Filip Wiesner committed
326

327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347
            <View
                android:id="@+id/detail_noteDivider"
                android:layout_width="match_parent"
                android:layout_height="1.5dp"
                android:background="?android:attr/listDivider" />

            <EditText
                android:id="@+id/detail_noteContent"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="8dp"
                android:layout_marginEnd="8dp"
                android:background="@android:color/transparent"
                android:fontFamily="sans-serif-condensed"
                android:gravity="end"
                android:textColor="@android:color/white"
                android:textSize="22sp"
                android:textStyle="bold"
                tools:text="Posledni termin" />
        </LinearLayout>
    </ScrollView>
Filip Wiesner's avatar
Filip Wiesner committed
348

349
</androidx.constraintlayout.widget.ConstraintLayout>