2019-11-24 21:09:49 +01:00
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) Kuba Szczodrzyński 2019-11-24.
-->
<layout xmlns:android= "http://schemas.android.com/apk/res/android"
2020-01-11 13:56:09 +01:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-11-24 21:09:49 +01:00
xmlns:tools="http://schemas.android.com/tools">
2019-12-21 17:39:17 +01:00
<FrameLayout
2019-11-24 21:09:49 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:layout_margin="8dp">
2019-11-25 22:15:36 +01:00
<LinearLayout
2019-12-21 17:39:17 +01:00
android:id="@+id/noTimetableLayout"
2019-11-25 15:00:51 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-08-25 19:14:11 +02:00
android:gravity="center_vertical"
2019-12-21 17:39:17 +01:00
android:orientation="horizontal"
android:visibility="gone"
tools:visibility="visible">
2019-11-25 22:15:36 +01:00
<LinearLayout
2020-08-25 19:14:11 +02:00
android:layout_width="0dp"
2019-11-25 22:15:36 +01:00
android:layout_height="wrap_content"
2020-08-25 19:14:11 +02:00
android:layout_weight="1"
2019-11-25 22:15:36 +01:00
android:orientation="vertical">
<TextView
2019-12-21 17:39:17 +01:00
android:layout_width="wrap_content"
2019-11-25 22:15:36 +01:00
android:layout_height="wrap_content"
2020-08-25 19:14:11 +02:00
android:text="@string/home_timetable_no_timetable"
android:textAppearance="@style/NavView.TextView.Title" />
2019-11-25 22:15:36 +01:00
<TextView
2019-12-21 17:39:17 +01:00
android:id="@+id/noTimetableText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-08-25 19:14:11 +02:00
android:layout_gravity="center_horizontal"
android:layout_margin="16dp"
android:fontFamily="sans-serif-light"
android:gravity="center_horizontal"
android:text="@string/home_timetable_no_timetable_text"
android:textSize="16sp" />
2019-12-21 17:39:17 +01:00
<com.google.android.material.button.MaterialButton
android:id="@+id/noTimetableSync"
2020-08-25 19:14:11 +02:00
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
2019-12-21 17:39:17 +01:00
android:layout_width="wrap_content"
2019-11-25 22:15:36 +01:00
android:layout_height="wrap_content"
2019-12-21 17:39:17 +01:00
android:text="@string/home_timetable_no_timetable_sync" />
2019-11-25 22:15:36 +01:00
</LinearLayout>
2020-08-25 19:14:11 +02:00
<ImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
app:srcCompat="@drawable/ic_sync" />
2019-11-25 22:15:36 +01:00
</LinearLayout>
2019-11-25 15:00:51 +01:00
2019-12-21 17:39:17 +01:00
<LinearLayout
android:id="@+id/noLessonsLayout"
2019-11-25 15:00:51 +01:00
android:layout_width="match_parent"
2019-12-21 17:39:17 +01:00
android:layout_height="wrap_content"
android:gravity="center_vertical"
2020-08-25 19:14:11 +02:00
android:orientation="horizontal"
2019-12-21 17:39:17 +01:00
android:visibility="gone"
2020-08-25 19:14:11 +02:00
tools:layout_marginTop="170dp"
2019-12-21 17:39:17 +01:00
tools:visibility="visible">
<LinearLayout
2020-08-25 19:14:11 +02:00
android:layout_width="0dp"
2019-12-21 17:39:17 +01:00
android:layout_height="wrap_content"
2020-08-25 19:14:11 +02:00
android:layout_weight="1"
2019-12-21 17:39:17 +01:00
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-08-25 19:14:11 +02:00
android:text="@string/home_timetable_no_lessons"
android:textAppearance="@style/NavView.TextView.Title" />
2019-12-21 17:39:17 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-08-25 19:14:11 +02:00
android:layout_gravity="center_horizontal"
android:layout_margin="16dp"
android:fontFamily="sans-serif-light"
android:gravity="center_horizontal"
android:text="@string/home_timetable_no_lessons_text"
android:textSize="16sp" />
2019-12-21 17:39:17 +01:00
</LinearLayout>
2020-08-25 19:14:11 +02:00
<ImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
app:srcCompat="@drawable/ic_timetable" />
2019-12-21 17:39:17 +01:00
</LinearLayout>
2019-11-25 15:00:51 +01:00
<LinearLayout
2019-12-21 17:39:17 +01:00
android:id="@+id/notPublicLayout"
2019-11-25 15:00:51 +01:00
android:layout_width="match_parent"
2019-12-21 17:39:17 +01:00
android:layout_height="wrap_content"
2020-08-25 19:14:11 +02:00
android:gravity="center_vertical"
2019-12-21 17:39:17 +01:00
android:orientation="horizontal"
android:visibility="gone"
2020-08-25 19:14:11 +02:00
tools:layout_marginTop="270dp"
2019-12-21 17:39:17 +01:00
tools:visibility="visible">
2019-11-25 15:00:51 +01:00
<LinearLayout
2020-08-25 19:14:11 +02:00
android:layout_width="0dp"
2019-11-25 15:00:51 +01:00
android:layout_height="wrap_content"
2020-08-25 19:14:11 +02:00
android:layout_weight="1"
2019-11-25 15:00:51 +01:00
android:orientation="vertical">
2019-11-25 22:15:36 +01:00
<TextView
2019-12-21 17:39:17 +01:00
android:layout_width="wrap_content"
2019-11-25 15:00:51 +01:00
android:layout_height="wrap_content"
2020-08-25 19:14:11 +02:00
android:text="@string/home_timetable_not_public"
android:textAppearance="@style/NavView.TextView.Title" />
2019-11-25 15:00:51 +01:00
<TextView
2019-12-21 17:39:17 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-08-25 19:14:11 +02:00
android:layout_gravity="center_horizontal"
android:layout_margin="16dp"
android:fontFamily="sans-serif-light"
android:gravity="center_horizontal"
android:text="@string/home_timetable_not_public_text"
android:textSize="16sp" />
2019-12-21 17:39:17 +01:00
</LinearLayout>
2020-08-25 19:14:11 +02:00
<ImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
app:srcCompat="@drawable/ic_no_timetable" />
2019-12-21 17:39:17 +01:00
</LinearLayout>
<LinearLayout
android:id="@+id/timetableLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
2020-08-25 19:14:11 +02:00
tools:layout_marginTop="410dp">
2019-12-21 17:39:17 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/dayInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/NavView.TextView.Title"
tools:text="Jutro" />
<TextView
android:id="@+id/lessonInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/NavView.TextView.Helper"
tools:text="7 lekcji - 8:10 do 14:45" />
</LinearLayout>
<ImageView
android:id="@+id/settings"
android:layout_width="40dp"
android:layout_height="40dp"
android:background="?selectableItemBackgroundBorderless"
2020-08-25 19:14:11 +02:00
android:padding="10dp"
2019-12-21 17:39:17 +01:00
android:visibility="gone"
tools:src="@sample/settings" />
<ImageView
android:id="@+id/bellSync"
android:layout_width="40dp"
android:layout_height="40dp"
android:background="?selectableItemBackgroundBorderless"
2020-08-25 19:14:11 +02:00
android:padding="10dp"
2019-12-21 17:39:17 +01:00
tools:src="@sample/settings" />
2019-12-22 20:04:20 +01:00
<ImageView
android:id="@+id/showCounter"
android:layout_width="40dp"
android:layout_height="40dp"
android:background="?selectableItemBackgroundBorderless"
2020-08-25 19:14:11 +02:00
android:padding="10dp"
2019-12-22 20:04:20 +01:00
tools:src="@sample/settings" />
2019-12-21 17:39:17 +01:00
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:background="@color/dividerColor" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
2019-11-25 15:00:51 +01:00
android:layout_height="wrap_content"
2019-12-21 17:39:17 +01:00
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/lessonBig"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/NavView.TextView.Subtitle"
tools:text="Pierwsza: informatyka" />
<TextView
android:id="@+id/classroom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/NavView.TextView.Small"
tools:text="09a komputerowa" />
<ProgressBar
android:id="@+id/progress"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-03-25 12:48:28 +01:00
android:layout_marginHorizontal="4dp"
2019-12-21 17:39:17 +01:00
android:visibility="gone"
tools:max="2700"
2020-08-25 19:14:11 +02:00
tools:progress="780"
tools:visibility="visible" />
2019-12-21 17:39:17 +01:00
</LinearLayout>
2019-11-25 15:00:51 +01:00
2019-12-21 17:39:17 +01:00
<TextView
android:id="@+id/counter"
android:layout_width="wrap_content"
2019-11-25 15:00:51 +01:00
android:layout_height="wrap_content"
2019-12-21 17:39:17 +01:00
android:layout_gravity="center_vertical"
android:gravity="center"
tools:text="zostały\n2 minuty\n35 sekund" />
2019-11-25 15:00:51 +01:00
</LinearLayout>
2019-12-21 17:39:17 +01:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:background="@color/dividerColor" />
2019-11-25 15:00:51 +01:00
<TextView
2019-12-21 17:39:17 +01:00
android:id="@+id/nextLessons"
android:layout_width="match_parent"
2019-11-25 15:00:51 +01:00
android:layout_height="wrap_content"
2019-12-21 17:39:17 +01:00
android:textAppearance="@style/NavView.TextView.Helper"
tools:text="Póżniej:\n9:05 informatyka\n10:00 urządzenia techniki komputerowej\n11:00 projektowanie lokalnych sieci komputerowych\n11:55 zajęcia z wychowawcą\n13:00 język polski\n14:05 język niemiecki" />
2019-11-25 15:00:51 +01:00
</LinearLayout>
2019-12-21 17:39:17 +01:00
</FrameLayout>
2019-12-20 00:40:00 +01:00
</layout>