activity_student_homework.xml
5.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="HardcodedText">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
app:navigationIcon="@drawable/svg_back"
android:paddingStart="-8dp"
android:paddingEnd="-8dp"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="40dp">
<TextView
android:id="@+id/tvTitle"
tools:text="小明的全部作业"
android:textSize="18sp"
android:textColor="#333"
android:textStyle="bold"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<ImageView
android:id="@+id/btnChangeStudent"
android:src="@drawable/png_ic_change_student"
android:layout_gravity="end"
android:layout_marginEnd="24dp"
android:layout_width="20dp"
android:layout_height="20dp"/>
</androidx.appcompat.widget.Toolbar>
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabLayout"
app:tabMode="fixed"
app:tabGravity="fill"
app:tabTextColor="#333333"
app:tabSelectedTextColor="#1C90F3"
app:tabIndicatorColor="#1C90F3"
app:tabIndicatorHeight="2dp"
app:tabIndicatorFullWidth="false"
app:tabTextAppearance="@style/tab_homework"
app:tabRippleColor="@color/transparent"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="45dp"/>
<LinearLayout
android:id="@+id/filterBar"
android:orientation="horizontal"
android:background="@color/white"
android:paddingHorizontal="15dp"
android:paddingVertical="11dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/ftSubject"
android:text="学科"
style="@style/tv_StudentHomeworkFilter"/>
<Space style="@style/empty_space"/>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/ftGrade"
android:text="年级"
style="@style/tv_StudentHomeworkFilter"/>
<Space style="@style/empty_space"/>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/ftTerm"
android:text="学期"
style="@style/tv_StudentHomeworkFilter"/>
<Space style="@style/empty_space"/>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/ftFeedback"
android:text="反馈状态"
style="@style/tv_StudentHomeworkFilter"/>
</LinearLayout>
<androidx.legacy.widget.Space
android:id="@+id/anchorView"
android:layout_width="0dp"
android:layout_height="0dp"/>
<FrameLayout
android:id="@+id/weekBar"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/btnGeneralHuyou"
android:visibility="gone"
tools:visibility="visible"
android:text="生成本周作业总结"
android:textSize="13sp"
android:textColor="#1C90F3"
android:gravity="center"
android:textStyle="bold"
android:background="@drawable/btn_general_huyou"
android:layout_marginTop="16dp"
android:layout_marginHorizontal="30dp"
android:layout_width="match_parent"
android:layout_height="35dp"
tools:ignore="HardcodedText" />
</FrameLayout>
<FrameLayout
android:id="@+id/stageBar"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/btnStageHuyou"
android:text="生成阶段性作业总结"
android:textSize="13sp"
android:textColor="#1C90F3"
android:gravity="center"
android:textStyle="bold"
android:background="@drawable/btn_general_huyou"
android:layout_marginTop="16dp"
android:layout_marginHorizontal="30dp"
android:layout_width="match_parent"
android:layout_height="35dp"
tools:ignore="HardcodedText" />
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:background="#F8F8F8"
android:orientation="vertical"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>