riku
2022-02-18 d59d55575d913646b7a90fca651904ab889c6723
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:orientation="horizontal"
        android:paddingStart="@dimen/dimen2"
        android:paddingEnd="@dimen/dimen2"
        android:paddingTop="12dp"
        android:paddingBottom="@dimen/dimen2"
        android:gravity="center_vertical">
 
    <android.support.constraint.ConstraintLayout
            android:id="@+id/cl_max_point"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            android:paddingStart="@dimen/dimen2"
            android:paddingEnd="@dimen/dimen2"
            android:background="@drawable/text_bg_underway">
        <TextView
                android:id="@+id/tv_max_point_decade"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                android:textColor="@android:color/white"
                android:textSize="20sp"
                tools:text="5"/>
 
        <TextView
                android:id="@+id/tv_max_point_unit"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:layout_constraintStart_toEndOf="@id/tv_max_point_decade"
                app:layout_constraintTop_toTopOf="@id/tv_max_point_decade"
                android:layout_marginTop="@dimen/dimen4"
                android:textColor="@android:color/white"
                android:textSize="20sp"
                android:visibility="gone"
                tools:text="0"/>
 
        <TextView
                android:id="@+id/tv_unit"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:layout_constraintBottom_toBottomOf="@id/tv_max_point_decade"
                app:layout_constraintStart_toEndOf="@id/tv_max_point_decade"
                android:textColor="@android:color/white"
                android:textSize="10sp"
                app:layout_constraintBaseline_toBaselineOf="@id/tv_max_point_decade"
                android:text="@string/unit_point"/>
 
    </android.support.constraint.ConstraintLayout>
 
    <TextView
            android:id="@+id/tv_grade_title_2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/orange"
            android:layout_marginStart="@dimen/dimen4"
            android:textSize="16sp"
            tools:text="这里是评分2级标题"/>
 
</LinearLayout>