mac
2023-11-03 9e875b253959eff8f6af567308ad804fe69d0a62
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".ui.test.TestMainActivity">
 
 
    <RelativeLayout
        android:id="@+id/test_top_bar_view"
        android:layout_width="match_parent"
        android:layout_height="@dimen/dp_52"
        android:background="@color/text_FFFFFFFF"
        android:orientation="horizontal"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">
        <!--1.返回按钮 增大点击区域-->
        <LinearLayout
            android:id="@+id/top_back_btn"
            android:layout_width="@dimen/dp_56"
            android:layout_height="match_parent"
            android:gravity="center_vertical"
            android:orientation="horizontal">
 
            <ImageView
                android:layout_width="@dimen/dp_24"
                android:layout_height="@dimen/dp_24"
                android:layout_gravity="center"
                android:layout_marginStart="@dimen/dp_16"
                android:scaleType="centerInside"
                android:src="@drawable/back" />
        </LinearLayout>
 
        <!--2.标题文本-->
        <TextView
            android:id="@+id/top_title_tv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:layout_marginLeft="@dimen/dp_60"
            android:layout_marginRight="@dimen/dp_60"
            android:fontFamily="sans-serif-medium"
            android:gravity="center"
            android:maxLines="1"
            android:text="逆变器指令测试"
            android:textColor="@color/text_030D1C"
            android:textSize="@dimen/text_18" />
 
        <!--3.更多按钮 默认隐藏-->
        <LinearLayout
            android:id="@+id/top_log_btn"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_alignParentEnd="true"
            android:gravity="center_vertical"
            android:orientation="horizontal">
 
            <TextView
                android:id="@+id/top_more_iv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="20dp"
                android:layout_marginEnd="20dp"
                android:text="我的日志"
                android:textColor="@color/text_030D1C"
                android:textSize="@dimen/text_15" />
 
 
        </LinearLayout>
 
    </RelativeLayout>
 
    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/title_cl"
        android:layout_width="match_parent"
        android:layout_height="@dimen/dp_50"
        android:background="@color/text_FFFFFFFF"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/test_top_bar_view">
 
        <TextView
            android:id="@+id/homeId_tv"
            android:layout_width="wrap_content"
            android:layout_height="@dimen/dp_25"
            android:textColor="@color/text_030D1C"
            android:textIsSelectable="true"
            android:textSize="@dimen/text_15"
            android:layout_marginStart="@dimen/dp_5"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />
 
        <TextView
            android:id="@+id/homeName_tv"
            android:layout_width="wrap_content"
            android:layout_height="@dimen/dp_25"
            android:layout_marginStart="@dimen/dp_5"
            android:textColor="@color/text_030D1C"
            android:textSize="@dimen/text_15"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/homeId_tv" />
 
        <View
            android:layout_width="match_parent"
            android:layout_height="0.5dp"
            android:background="@color/text_245EC3"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent" />
 
 
    </androidx.constraintlayout.widget.ConstraintLayout>
 
    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/list_item_rl"
        android:layout_width="@dimen/dp_100"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/title_cl" />
 
    <View
        android:id="@+id/lien"
        android:layout_width="0.5dp"
        android:layout_height="0dp"
        android:background="@color/text_245EC3"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toEndOf="@+id/list_item_rl"
        app:layout_constraintTop_toBottomOf="@+id/title_cl" />
 
    <ScrollView
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@+id/lien"
        app:layout_constraintTop_toBottomOf="@+id/title_cl">
 
        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
 
            <TextView
                android:id="@+id/reply_content_tv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:padding="@dimen/dp_10"
                android:textColor="@color/text_030D1C"
                android:textIsSelectable="true"
                android:textSize="@dimen/text_15"
 
                />
        </FrameLayout>
    </ScrollView>
 
 
</androidx.constraintlayout.widget.ConstraintLayout>