Commit 615abc051114c75c2d9c8a569fcadb0d04242be6
1 parent
5a16e81af6
Exists in
master
布局调整
Showing
1 changed file
with
7 additions
and
6 deletions
Show diff stats
app/src/main/res/layout/activity_homework_detail.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <LinearLayout | 2 | <LinearLayout |
3 | xmlns:android="http://schemas.android.com/apk/res/android" | 3 | xmlns:android="http://schemas.android.com/apk/res/android" |
4 | xmlns:app="http://schemas.android.com/apk/res-auto" | 4 | xmlns:app="http://schemas.android.com/apk/res-auto" |
5 | xmlns:tools="http://schemas.android.com/tools" | 5 | xmlns:tools="http://schemas.android.com/tools" |
6 | android:orientation="vertical" | 6 | android:orientation="vertical" |
7 | android:layout_width="match_parent" | 7 | android:layout_width="match_parent" |
8 | android:layout_height="match_parent" | 8 | android:layout_height="match_parent" |
9 | tools:ignore="HardcodedText"> | 9 | tools:ignore="HardcodedText,SpUsage"> |
10 | 10 | ||
11 | <androidx.appcompat.widget.Toolbar | 11 | <androidx.appcompat.widget.Toolbar |
12 | android:id="@+id/toolbar" | 12 | android:id="@+id/toolbar" |
13 | app:navigationIcon="@drawable/svg_back" | 13 | app:navigationIcon="@drawable/svg_back" |
14 | app:contentInsetStartWithNavigation="14dp" | 14 | app:contentInsetStart="0dp" |
15 | app:contentInsetStartWithNavigation="0dp" | ||
15 | android:paddingStart="-8dp" | 16 | android:paddingStart="-8dp" |
16 | android:paddingEnd="-8dp" | 17 | android:paddingEnd="-8dp" |
17 | android:background="@color/white" | 18 | android:background="@color/white" |
18 | android:layout_width="match_parent" | 19 | android:layout_width="match_parent" |
19 | android:layout_height="40dp"> | 20 | android:layout_height="40dp"> |
20 | <TextView | 21 | <TextView |
21 | android:id="@+id/tvTitle" | 22 | android:id="@+id/tvTitle" |
22 | tools:text="作业名称作业名称作业名称作业名称" | 23 | tools:text="2024年10月12日数学作业" |
23 | android:singleLine="true" | 24 | android:singleLine="true" |
24 | android:maxEms="10" | 25 | android:maxEms="10" |
25 | android:ellipsize="end" | 26 | android:ellipsize="end" |
26 | android:textSize="18sp" | 27 | android:textSize="16dp" |
27 | android:textColor="#333" | 28 | android:textColor="#333" |
28 | android:textStyle="bold" | 29 | android:textStyle="bold" |
29 | android:layout_width="wrap_content" | 30 | android:layout_width="wrap_content" |
30 | android:layout_height="wrap_content"/> | 31 | android:layout_height="wrap_content" /> |
31 | <androidx.appcompat.widget.AppCompatImageView | 32 | <androidx.appcompat.widget.AppCompatImageView |
32 | android:id="@+id/btnEdit" | 33 | android:id="@+id/btnEdit" |
33 | android:src="@drawable/svg_homework_edit" | 34 | android:src="@drawable/svg_homework_edit" |
34 | android:layout_marginStart="5dp" | 35 | android:layout_marginStart="5dp" |
35 | android:layout_width="18dp" | 36 | android:layout_width="18dp" |
36 | android:layout_height="18dp"/> | 37 | android:layout_height="18dp"/> |
37 | <TextView | 38 | <TextView |
38 | android:id="@+id/btnFeedback" | 39 | android:id="@+id/btnFeedback" |
39 | android:text="反馈作业" | 40 | android:text="反馈作业" |
40 | android:textSize="13sp" | 41 | android:textSize="13dp" |
41 | android:textColor="#1C90F3" | 42 | android:textColor="#1C90F3" |
42 | android:textStyle="bold" | 43 | android:textStyle="bold" |
43 | android:layout_gravity="end|center_vertical" | 44 | android:layout_gravity="end|center_vertical" |
44 | android:layout_marginEnd="24dp" | 45 | android:layout_marginEnd="24dp" |
45 | android:layout_width="wrap_content" | 46 | android:layout_width="wrap_content" |
46 | android:layout_height="wrap_content"/> | 47 | android:layout_height="wrap_content"/> |
47 | </androidx.appcompat.widget.Toolbar> | 48 | </androidx.appcompat.widget.Toolbar> |
48 | 49 | ||
49 | <androidx.recyclerview.widget.RecyclerView | 50 | <androidx.recyclerview.widget.RecyclerView |
50 | android:id="@+id/recyclerView" | 51 | android:id="@+id/recyclerView" |
51 | android:orientation="vertical" | 52 | android:orientation="vertical" |
52 | app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" | 53 | app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |
53 | android:layout_width="match_parent" | 54 | android:layout_width="match_parent" |
54 | android:layout_height="match_parent"/> | 55 | android:layout_height="match_parent"/> |
55 | 56 | ||
56 | </LinearLayout> | 57 | </LinearLayout> |