Commit 0b06f873f34df1906e4fd3167f284b2eb812ed71
1 parent
cafc2abf7b
Exists in
master
序号调整
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/src/main/res/layout/item_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:tools="http://schemas.android.com/tools" | 4 | xmlns:tools="http://schemas.android.com/tools" |
| 5 | android:orientation="vertical" | 5 | android:orientation="vertical" |
| 6 | android:background="@drawable/shape_radius_10" | 6 | android:background="@drawable/shape_radius_10" |
| 7 | android:backgroundTint="@color/white" | 7 | android:backgroundTint="@color/white" |
| 8 | android:paddingVertical="14dp" | 8 | android:paddingVertical="14dp" |
| 9 | android:layout_marginHorizontal="16dp" | 9 | android:layout_marginHorizontal="16dp" |
| 10 | android:layout_marginVertical="8dp" | 10 | android:layout_marginVertical="8dp" |
| 11 | android:layout_width="match_parent" | 11 | android:layout_width="match_parent" |
| 12 | android:layout_height="wrap_content" | 12 | android:layout_height="wrap_content" |
| 13 | tools:ignore="SmallSp"> | 13 | tools:ignore="SmallSp"> |
| 14 | 14 | ||
| 15 | <LinearLayout | 15 | <LinearLayout |
| 16 | android:orientation="horizontal" | 16 | android:orientation="horizontal" |
| 17 | android:gravity="center_vertical" | 17 | android:gravity="center_vertical" |
| 18 | android:layout_marginStart="16dp" | 18 | android:layout_marginStart="16dp" |
| 19 | android:layout_width="match_parent" | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content"> | 20 | android:layout_height="wrap_content"> |
| 21 | <CheckBox | 21 | <CheckBox |
| 22 | android:id="@+id/checkbox" | 22 | android:id="@+id/checkbox" |
| 23 | android:visibility="gone" | 23 | android:visibility="gone" |
| 24 | tools:visibility="visible" | 24 | tools:visibility="visible" |
| 25 | android:button="@drawable/chk_circle" | 25 | android:button="@drawable/chk_circle" |
| 26 | android:layout_marginEnd="5dp" | 26 | android:layout_marginEnd="5dp" |
| 27 | android:layout_width="16dp" | 27 | android:layout_width="16dp" |
| 28 | android:layout_height="16dp"/> | 28 | android:layout_height="16dp"/> |
| 29 | <TextView | 29 | <TextView |
| 30 | android:id="@+id/tvNumber" | 30 | android:id="@+id/tvNumber" |
| 31 | tools:text="第1题" | 31 | tools:text="第1题" |
| 32 | android:textSize="9sp" | 32 | android:textSize="9sp" |
| 33 | android:textColor="#333" | 33 | android:textColor="@color/white" |
| 34 | android:paddingHorizontal="7dp" | 34 | android:paddingHorizontal="7dp" |
| 35 | android:paddingVertical="3dp" | 35 | android:paddingVertical="3dp" |
| 36 | android:background="@drawable/shape_radius_5" | 36 | android:background="@drawable/shape_radius_5" |
| 37 | android:backgroundTint="#F2F2F2" | 37 | android:backgroundTint="#489AFA" |
| 38 | android:layout_width="wrap_content" | 38 | android:layout_width="wrap_content" |
| 39 | android:layout_height="wrap_content" /> | 39 | android:layout_height="wrap_content" /> |
| 40 | </LinearLayout> | 40 | </LinearLayout> |
| 41 | 41 | ||
| 42 | <ImageView | 42 | <ImageView |
| 43 | android:id="@+id/ivTopic" | 43 | android:id="@+id/ivTopic" |
| 44 | android:adjustViewBounds="true" | 44 | android:adjustViewBounds="true" |
| 45 | android:layout_marginStart="10dp" | 45 | android:layout_marginStart="10dp" |
| 46 | android:layout_marginEnd="4dp" | 46 | android:layout_marginEnd="4dp" |
| 47 | android:layout_marginTop="14dp" | 47 | android:layout_marginTop="14dp" |
| 48 | android:layout_width="match_parent" | 48 | android:layout_width="match_parent" |
| 49 | android:layout_height="wrap_content" | 49 | android:layout_height="wrap_content" |
| 50 | android:importantForAccessibility="no" /> | 50 | android:importantForAccessibility="no" /> |
| 51 | </LinearLayout> | 51 | </LinearLayout> |