activity_homework_detail.xml
2.03 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
<?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"
app:contentInsetStartWithNavigation="14dp"
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_width="wrap_content"
android:layout_height="wrap_content"/>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/btnEdit"
android:src="@drawable/svg_homework_edit"
android:layout_marginStart="5dp"
android:layout_width="18dp"
android:layout_height="18dp"/>
<TextView
android:id="@+id/btnFeedback"
android:text="反馈作业"
android:textSize="13sp"
android:textColor="#1C90F3"
android:textStyle="bold"
android:layout_gravity="end|center_vertical"
android:layout_marginEnd="24dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</androidx.appcompat.widget.Toolbar>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:orientation="vertical"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>