2018-10-14 22:16:58 +02:00
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-10-06 10:53:34 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-12-11 19:45:28 +01:00
|
|
|
android:layout_width="match_parent"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:layout_height="match_parent">
|
2017-12-11 19:45:28 +01:00
|
|
|
|
2018-10-20 20:59:46 +02:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
2018-08-24 15:48:29 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginBottom="50dp">
|
2018-10-06 10:53:34 +02:00
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/timetableProgress"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:indeterminate="true" />
|
|
|
|
|
2018-10-20 20:59:46 +02:00
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
2018-10-06 10:53:34 +02:00
|
|
|
android:id="@+id/timetableSwipe"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2018-10-20 20:59:46 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2018-10-06 10:53:34 +02:00
|
|
|
android:id="@+id/timetableRecycler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
2018-10-20 20:59:46 +02:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
2018-10-06 10:53:34 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/timetableEmpty"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
2018-10-20 20:59:46 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2018-10-06 10:53:34 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minWidth="100dp"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:minHeight="100dp"
|
2018-10-06 10:53:34 +02:00
|
|
|
app:srcCompat="@drawable/ic_menu_main_timetable_24dp"
|
|
|
|
app:tint="?android:attr/textColorPrimary"
|
|
|
|
tools:ignore="contentDescription" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/timetable_no_items"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
</LinearLayout>
|
2018-10-20 20:59:46 +02:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
2018-10-06 10:53:34 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:layout_height="50dp"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:layout_gravity="bottom"
|
2018-10-30 22:06:29 +01:00
|
|
|
android:background="?android:attr/windowBackground"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:elevation="10dp"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/timetablePreviousButton"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
android:gravity="start|center"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:text="@string/all_prev"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:textAlignment="gravity" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableNavDate"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/app_name" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/timetableNextButton"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
android:gravity="end|center"
|
2018-10-14 22:16:58 +02:00
|
|
|
android:text="@string/all_next"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:textAlignment="gravity" />
|
|
|
|
</LinearLayout>
|
2018-10-14 22:16:58 +02:00
|
|
|
</FrameLayout>
|