forked from github/szkolny
272 lines
11 KiB
XML
272 lines
11 KiB
XML
<?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"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
tools:layout_margin="8dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/noTimetableLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/home_timetable_no_timetable"
|
|
android:textAppearance="@style/NavView.TextView.Title" />
|
|
|
|
<TextView
|
|
android:id="@+id/noTimetableText"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
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" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/noTimetableSync"
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/home_timetable_no_timetable_sync" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
app:srcCompat="@drawable/ic_sync" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/noLessonsLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone"
|
|
tools:layout_marginTop="170dp"
|
|
tools:visibility="visible">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/home_timetable_no_lessons"
|
|
android:textAppearance="@style/NavView.TextView.Title" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
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" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
app:srcCompat="@drawable/ic_timetable" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/notPublicLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone"
|
|
tools:layout_marginTop="270dp"
|
|
tools:visibility="visible">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/home_timetable_not_public"
|
|
android:textAppearance="@style/NavView.TextView.Title" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
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" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
app:srcCompat="@drawable/ic_no_timetable" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/timetableLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
tools:layout_marginTop="410dp">
|
|
|
|
<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"
|
|
android:padding="10dp"
|
|
android:visibility="gone"
|
|
tools:src="@sample/settings" />
|
|
|
|
<ImageView
|
|
android:id="@+id/bellSync"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:padding="10dp"
|
|
tools:src="@sample/settings" />
|
|
|
|
<ImageView
|
|
android:id="@+id/showCounter"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:padding="10dp"
|
|
tools:src="@sample/settings" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginVertical="4dp"
|
|
android:background="@color/dividerColor" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
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"
|
|
android:layout_marginHorizontal="4dp"
|
|
android:visibility="gone"
|
|
tools:max="2700"
|
|
tools:progress="780"
|
|
tools:visibility="visible" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/counter"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center"
|
|
tools:text="zostały\n2 minuty\n35 sekund" />
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginVertical="4dp"
|
|
android:background="@color/dividerColor" />
|
|
|
|
<TextView
|
|
android:id="@+id/nextLessons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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" />
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
</layout>
|