Commit b185fa0a902fcd3ba45d22011ce7d00d05f1cbb6

Authored by shixianjie
1 parent 9ec5407bef
Exists in master

empty view

app/src/main/java/com/hjx/parent/StuHomeworkActivity.java
... ... @@ -80,6 +80,8 @@ public class StuHomeworkActivity extends BaseRxActivity<ActivityStudentHomeworkB
80 80 binding.tvTitle.setText(state.student.stuName + "的全部作业");
81 81 setupTab();
82 82 homeworkAdapter.setEmptyView(R.layout.empty_list_homework, binding.recyclerView);
  83 + weekAdapter.setEmptyView(R.layout.empty_huyou_list, binding.recyclerView);
  84 + stageAdapter.setEmptyView(R.layout.empty_huyou_stage, binding.recyclerView);
83 85 binding.recyclerView.setAdapter(homeworkAdapter);
84 86  
85 87 deleteDialog = new MsgConfirmDialog.Builder(this)
... ...
app/src/main/res/drawable/png_empty_huyou_list.png

72.6 KB

app/src/main/res/layout/empty_huyou_list.xml
... ... @@ -0,0 +1,22 @@
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<LinearLayout
  3 + xmlns:android="http://schemas.android.com/apk/res/android"
  4 + android:orientation="vertical"
  5 + android:gravity="center"
  6 + android:paddingVertical="40dp"
  7 + android:layout_width="match_parent"
  8 + android:layout_height="wrap_content">
  9 +
  10 + <ImageView
  11 + android:src="@drawable/png_empty_huyou_list"
  12 + android:layout_width="104dp"
  13 + android:layout_height="104dp"/>
  14 +
  15 + <TextView
  16 + android:text="暂无周作业总结"
  17 + android:textSize="14sp"
  18 + android:textColor="#999"
  19 + android:layout_width="wrap_content"
  20 + android:layout_height="wrap_content"/>
  21 +
  22 +</LinearLayout>
0 23 \ No newline at end of file
... ...
app/src/main/res/layout/empty_huyou_stage.xml
... ... @@ -0,0 +1,22 @@
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<LinearLayout
  3 + xmlns:android="http://schemas.android.com/apk/res/android"
  4 + android:orientation="vertical"
  5 + android:gravity="center"
  6 + android:paddingVertical="40dp"
  7 + android:layout_width="match_parent"
  8 + android:layout_height="wrap_content">
  9 +
  10 + <ImageView
  11 + android:src="@drawable/png_empty_huyou_list"
  12 + android:layout_width="104dp"
  13 + android:layout_height="104dp"/>
  14 +
  15 + <TextView
  16 + android:text="暂无阶段性作业总结"
  17 + android:textSize="14sp"
  18 + android:textColor="#999"
  19 + android:layout_width="wrap_content"
  20 + android:layout_height="wrap_content"/>
  21 +
  22 +</LinearLayout>
0 23 \ No newline at end of file
... ...