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
| ... | ... | @@ -6,12 +6,13 @@ |
| 6 | 6 | android:orientation="vertical" |
| 7 | 7 | android:layout_width="match_parent" |
| 8 | 8 | android:layout_height="match_parent" |
| 9 | - tools:ignore="HardcodedText"> | |
| 9 | + tools:ignore="HardcodedText,SpUsage"> | |
| 10 | 10 | |
| 11 | 11 | <androidx.appcompat.widget.Toolbar |
| 12 | 12 | android:id="@+id/toolbar" |
| 13 | 13 | app:navigationIcon="@drawable/svg_back" |
| 14 | - app:contentInsetStartWithNavigation="14dp" | |
| 14 | + app:contentInsetStart="0dp" | |
| 15 | + app:contentInsetStartWithNavigation="0dp" | |
| 15 | 16 | android:paddingStart="-8dp" |
| 16 | 17 | android:paddingEnd="-8dp" |
| 17 | 18 | android:background="@color/white" |
| ... | ... | @@ -19,15 +20,15 @@ |
| 19 | 20 | android:layout_height="40dp"> |
| 20 | 21 | <TextView |
| 21 | 22 | android:id="@+id/tvTitle" |
| 22 | - tools:text="作业名称作业名称作业名称作业名称" | |
| 23 | + tools:text="2024年10月12日数学作业" | |
| 23 | 24 | android:singleLine="true" |
| 24 | 25 | android:maxEms="10" |
| 25 | 26 | android:ellipsize="end" |
| 26 | - android:textSize="18sp" | |
| 27 | + android:textSize="16dp" | |
| 27 | 28 | android:textColor="#333" |
| 28 | 29 | android:textStyle="bold" |
| 29 | 30 | android:layout_width="wrap_content" |
| 30 | - android:layout_height="wrap_content"/> | |
| 31 | + android:layout_height="wrap_content" /> | |
| 31 | 32 | <androidx.appcompat.widget.AppCompatImageView |
| 32 | 33 | android:id="@+id/btnEdit" |
| 33 | 34 | android:src="@drawable/svg_homework_edit" |
| ... | ... | @@ -37,7 +38,7 @@ |
| 37 | 38 | <TextView |
| 38 | 39 | android:id="@+id/btnFeedback" |
| 39 | 40 | android:text="反馈作业" |
| 40 | - android:textSize="13sp" | |
| 41 | + android:textSize="13dp" | |
| 41 | 42 | android:textColor="#1C90F3" |
| 42 | 43 | android:textStyle="bold" |
| 43 | 44 | android:layout_gravity="end|center_vertical" | ... | ... |