forked from github/szkolny
145 lines
6.3 KiB
XML
145 lines
6.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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">
|
|
|
|
<pl.szczodrzynski.edziennik.utils.SwipeRefreshLayoutNoIndicator
|
|
android:id="@+id/refreshLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
<com.google.android.material.button.MaterialButtonToggleGroup
|
|
android:id="@+id/toggleGroup"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
app:singleSelection="true"
|
|
app:selectionRequired="true"
|
|
android:gravity="center_horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/semester1"
|
|
style="?materialButtonOutlinedStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Semestr 1" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/semester2"
|
|
style="?materialButtonOutlinedStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Semestr 2" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/allYear"
|
|
style="?materialButtonOutlinedStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Cały rok" />
|
|
</com.google.android.material.button.MaterialButtonToggleGroup>
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal">
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?colorPrimary"
|
|
android:textAppearance="@style/NavView.TextView.TitleSmall"
|
|
android:text="@string/notices_praises_title" />
|
|
<TextView
|
|
android:id="@+id/noticesPraisesCount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/NavView.TextView.TitleSmall"
|
|
tools:text="342525"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginHorizontal="32dp">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?colorPrimary"
|
|
android:textAppearance="@style/NavView.TextView.TitleSmall"
|
|
android:text="@string/notices_warnings_title" />
|
|
<TextView
|
|
android:id="@+id/noticesWarningsCount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/NavView.TextView.TitleSmall"
|
|
tools:text="53535353"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?colorPrimary"
|
|
android:textAppearance="@style/NavView.TextView.TitleSmall"
|
|
android:text="@string/notices_other_title" />
|
|
<TextView
|
|
android:id="@+id/noticesOtherCount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/NavView.TextView.TitleSmall"
|
|
tools:text="3331"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/noticesView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="8dp"
|
|
tools:listitem="@layout/row_notices_item" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/noticesNoData"
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:layout_height="match_parent"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<com.mikepenz.iconics.view.IconicsImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="92dp"
|
|
app:iiv_icon="szf-message-off"
|
|
app:iiv_color="?android:textColorPrimary"
|
|
app:iiv_size="92dp"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:textAppearance="?textAppearanceBodyMedium"
|
|
android:gravity="center"
|
|
android:text="@string/notices_no_data" />
|
|
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
</pl.szczodrzynski.edziennik.utils.SwipeRefreshLayoutNoIndicator>
|
|
</layout>
|