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
|
|
|
|
2019-08-26 20:54:20 +02:00
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
2018-10-06 10:53:34 +02:00
|
|
|
android:id="@+id/timetableProgress"
|
2019-08-26 20:54:20 +02:00
|
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar"
|
2018-10-06 10:53:34 +02:00
|
|
|
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"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="UseCompoundDrawables">
|
2018-10-06 10:53:34 +02:00
|
|
|
|
2019-08-26 20:54:20 +02:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
app:srcCompat="@drawable/ic_main_timetable"
|
|
|
|
app:tint="?colorOnBackground"
|
2018-10-06 10:53:34 +02:00
|
|
|
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
|
|
|
|
2019-08-26 20:54:20 +02:00
|
|
|
<io.github.wulkanowy.ui.widgets.MaterialLinearLayout
|
|
|
|
android:id="@+id/timetableNavContainer"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-09-28 20:37:14 +02:00
|
|
|
android:layout_height="48dp"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:layout_gravity="bottom"
|
2019-09-28 20:37:14 +02:00
|
|
|
android:gravity="center"
|
2019-11-03 14:52:35 +01:00
|
|
|
android:orientation="horizontal"
|
2019-08-26 20:54:20 +02:00
|
|
|
tools:ignore="UnusedAttribute">
|
2019-11-03 14:52:35 +01:00
|
|
|
|
2019-09-28 20:37:14 +02:00
|
|
|
<ImageButton
|
2018-10-06 10:53:34 +02:00
|
|
|
android:id="@+id/timetablePreviousButton"
|
2019-09-28 20:37:14 +02:00
|
|
|
android:layout_width="wrap_content"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2019-09-28 20:37:14 +02:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2019-11-03 14:52:35 +01:00
|
|
|
android:contentDescription="@string/all_prev"
|
2019-09-28 20:37:14 +02:00
|
|
|
android:paddingLeft="12dp"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingRight="12dp"
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:scaleType="fitStart"
|
|
|
|
android:tint="?colorPrimary"
|
2019-11-03 14:52:35 +01:00
|
|
|
app:srcCompat="@drawable/ic_chevron_left" />
|
2018-10-06 10:53:34 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableNavDate"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2019-11-03 14:52:35 +01:00
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
2019-09-28 20:37:14 +02:00
|
|
|
android:fontFamily="sans-serif"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:gravity="center"
|
2019-09-28 20:37:14 +02:00
|
|
|
android:text="@string/app_name"
|
|
|
|
android:textSize="16sp" />
|
2018-10-06 10:53:34 +02:00
|
|
|
|
2019-09-28 20:37:14 +02:00
|
|
|
<ImageButton
|
2018-10-06 10:53:34 +02:00
|
|
|
android:id="@+id/timetableNextButton"
|
2019-09-28 20:37:14 +02:00
|
|
|
android:layout_width="wrap_content"
|
2018-10-06 10:53:34 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2019-09-28 20:37:14 +02:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2019-11-03 14:52:35 +01:00
|
|
|
android:contentDescription="@string/all_next"
|
2019-09-28 20:37:14 +02:00
|
|
|
android:paddingLeft="12dp"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingRight="12dp"
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:scaleType="fitEnd"
|
|
|
|
android:tint="?colorPrimary"
|
2019-11-03 14:52:35 +01:00
|
|
|
app:srcCompat="@drawable/ic_chevron_right" />
|
2019-08-26 20:54:20 +02:00
|
|
|
</io.github.wulkanowy.ui.widgets.MaterialLinearLayout>
|
2018-10-14 22:16:58 +02:00
|
|
|
</FrameLayout>
|