2018-12-07 12:01:19 -06:00
|
|
|
<FrameLayout 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"
|
|
|
|
android:layout_width="match_parent"
|
2019-01-06 17:56:32 -06:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context=".ui.modules.attendance.summary.AttendanceSummaryFragment">
|
2018-12-07 12:01:19 -06:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<io.github.wulkanowy.ui.widgets.MaterialLinearLayout
|
2019-01-06 17:56:32 -06:00
|
|
|
android:id="@+id/attendanceSummarySubjectsContainer"
|
2018-12-07 12:01:19 -06:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-26 13:54:20 -05:00
|
|
|
android:background="?android:windowBackground"
|
2019-01-06 17:56:32 -06:00
|
|
|
android:padding="5dp"
|
|
|
|
android:visibility="invisible"
|
2019-08-26 13:54:20 -05:00
|
|
|
tools:ignore="UnusedAttribute"
|
2019-01-06 17:56:32 -06:00
|
|
|
tools:listitem="@layout/item_attendance_summary"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<Spinner
|
2019-01-06 17:56:32 -06:00
|
|
|
android:id="@+id/attendanceSummarySubjects"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="middle"
|
2019-10-28 15:10:58 -05:00
|
|
|
android:entries="@array/hosts_keys"
|
2019-01-06 17:56:32 -06:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:paddingEnd="30dp"
|
|
|
|
android:paddingRight="30dp"
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
android:spinnerMode="dialog" />
|
2019-08-26 13:54:20 -05:00
|
|
|
</io.github.wulkanowy.ui.widgets.MaterialLinearLayout>
|
2018-12-07 12:01:19 -06:00
|
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/attendanceSummarySwipe"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/attendanceSummaryRecycler"
|
|
|
|
android:layout_width="match_parent"
|
2019-01-06 17:56:32 -06:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:listitem="@layout/item_attendance_summary" />
|
2018-12-07 12:01:19 -06:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
2018-12-07 12:01:19 -06:00
|
|
|
android:id="@+id/attendanceSummaryProgress"
|
2019-08-26 13:54:20 -05:00
|
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar"
|
2018-12-07 12:01:19 -06:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2019-08-26 13:54:20 -05:00
|
|
|
android:indeterminate="true"
|
|
|
|
tools:visibility="gone" />
|
2018-12-07 12:01:19 -06:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/attendanceSummaryEmpty"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
2019-08-26 13:54:20 -05:00
|
|
|
android:visibility="invisible"
|
|
|
|
tools:ignore="UseCompoundDrawables">
|
2018-12-07 12:01:19 -06:00
|
|
|
|
2019-08-26 13:54:20 -05:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
app:srcCompat="@drawable/ic_main_attendance"
|
|
|
|
app:tint="?colorOnBackground"
|
2018-12-07 12:01:19 -06: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/attendance_no_items"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|