confide_recommend_view_new.xml 8.89 KB
Newer Older
1 2 3 4 5
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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"
6 7 8
    xmlns:tools="http://schemas.android.com/tools"
    android:background="@color/white"
    >
9 10 11 12 13
    <androidx.cardview.widget.CardView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:cardElevation="0dp"
        app:cardCornerRadius="6dp"
万齐军 committed
14
        android:layout_marginTop="20dp"
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
        android:layout_marginStart="@dimen/platform_dp_15"
        android:id="@+id/img_bg"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        >
        <FrameLayout
            android:layout_width="96dp"
            android:layout_height="96dp">
            <ImageView
                android:id="@+id/img_head"
                android:layout_width="96dp"
                android:layout_height="96dp"
                android:scaleType="fitXY"/>
            <TextView
                android:id="@+id/tv_isLine"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingLeft="9dp"
                android:paddingRight="9dp"
                android:paddingTop="1dp"
                android:paddingBottom="1dp"
                android:textSize="@dimen/confide_dp_10"
                android:textColor="@color/white"
                android:background="@drawable/confide_recommend_expert_line_bg"
                tools:text="在线"/>
            <ImageView
                android:id="@+id/iv_play"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_gravity="bottom|right"
                android:layout_marginBottom="8dp"
                android:layout_marginEnd="8dp"
                tools:background="@drawable/confide_paused"/>
        </FrameLayout>
    </androidx.cardview.widget.CardView>
    <TextView
        android:id="@+id/tv_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
54
        android:layout_marginStart="12dp"
55
        android:textColor="@color/platform_color_333333"
万齐军 committed
56 57 58 59 60
        android:textSize="@dimen/platform_sp_16"
        android:textStyle="bold"
        app:layout_constraintStart_toEndOf="@id/img_bg"
        app:layout_constraintTop_toTopOf="@id/img_bg"
        tools:text="姚雨晴" />
61 62 63 64 65 66
    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/ll_confide_data"
        app:layout_constraintTop_toBottomOf="@id/tv_name"
        app:layout_constraintStart_toEndOf="@id/img_bg"
67
        android:layout_marginStart="12dp"
68 69 70 71 72 73 74 75 76 77 78 79 80 81
        android:orientation="horizontal"
        >
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:gravity="center"
            >
            <TextView
                android:id="@+id/tv_Connection"
                android:layout_marginTop="@dimen/confide_dp_12"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="@dimen/platform_sp_14"
万齐军 committed
82
                android:textColor="#555555"
83 84 85 86 87 88 89 90 91
                android:textStyle="bold"
                tools:text="83%"
                />
            <TextView
                android:id="@+id/tv_ConnectionContent"
                android:layout_marginTop="@dimen/platform_dp_3"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="@dimen/platform_sp_12"
万齐军 committed
92
                android:textColor="#69696A"
93 94 95 96 97 98 99 100 101 102 103 104 105 106
                android:text="接通率" />
        </LinearLayout>
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:gravity="center"
            android:layout_marginStart="@dimen/confide_dp_25"
            >
            <TextView
                android:id="@+id/tv_confideNum"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="@dimen/platform_sp_14"
万齐军 committed
107
                android:textColor="#555555"
108 109 110 111 112 113 114 115 116 117
                android:textStyle="bold"
                android:layout_marginTop="12dp"
                tools:text="8000人"
                />
            <TextView
                android:id="@+id/tv_tv_confideNumContent"
                android:layout_marginTop="@dimen/platform_dp_3"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="@dimen/platform_sp_12"
万齐军 committed
118
                android:textColor="#69696A"
119
                android:text="服务人次"
120 121 122 123 124 125 126 127 128 129 130 131 132 133
                 />
        </LinearLayout>
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:gravity="center"
            android:layout_marginStart="@dimen/confide_dp_25"
            >
            <TextView
                android:id="@+id/tv_score"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="@dimen/platform_sp_14"
万齐军 committed
134
                android:textColor="#555555"
135 136 137 138 139 140 141 142 143 144
                android:textStyle="bold"
                android:layout_marginTop="12dp"
                tools:text="4.9"
                />
            <TextView
                android:id="@+id/tv_tv_ScoreContent"
                android:layout_marginTop="@dimen/platform_dp_3"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="@dimen/platform_sp_12"
万齐军 committed
145
                android:textColor="#69696A"
146 147 148 149
                android:text="评分"
                />
        </LinearLayout>
    </LinearLayout>
万齐军 committed
150 151

    <TextView
152
        android:id="@+id/flowlayout_tag"
万齐军 committed
153
        android:layout_width="0dp"
154
        android:layout_height="16dp"
155
        android:layout_marginStart="12dp"
万齐军 committed
156 157
        android:layout_marginEnd="12dp"
        android:textColor="#9495A0"
158 159
        android:maxLines="1"
        android:ellipsize="end"
万齐军 committed
160 161 162 163
        android:textSize="12sp"
        app:layout_constraintBottom_toBottomOf="@+id/img_bg"
        app:layout_constraintEnd_toStartOf="@+id/price_content"
        app:layout_constraintStart_toEndOf="@+id/img_bg" />
万齐军 committed
164

165
    <TextView
万齐军 committed
166
        android:id="@+id/price_content"
167 168
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
万齐军 committed
169
        android:layout_marginTop="3dp"
万齐军 committed
170
        android:layout_marginRight="16dp"
171 172
        android:text="50元/25分钟"
        android:textSize="@dimen/platform_sp_12"
万齐军 committed
173 174
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/ll_confide_data" />
万齐军 committed
175

176 177 178 179 180 181 182 183 184 185 186 187 188
    <TextView
        android:id="@+id/tv_content"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="13sp"
        android:textColor="#919190"
        android:maxLines="2"
        android:ellipsize="end"
        app:layout_constraintTop_toBottomOf="@id/img_bg"
        app:layout_constraintStart_toStartOf="@id/img_bg"
        android:layout_marginTop="@dimen/platform_dp_15"
        tools:text="没有人一出生就是完美的,只有不断的相信自...己…才能成就自己的梦想。"
         />
189 190 191
    <FrameLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
万齐军 committed
192
        android:layout_marginTop="8dp"
193 194 195 196 197 198 199 200 201 202 203 204
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        >
        <TextView
            android:id="@+id/tv_confide"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:layout_marginTop="@dimen/platform_dp_15"
            android:layout_marginEnd="@dimen/platform_dp_15"
            android:gravity="center"
            tools:background="@drawable/confide_line_1"/>
        <ImageView
万齐军 committed
205 206
            android:layout_width="42dp"
            android:layout_height="21dp"
207 208 209 210 211 212 213 214 215 216 217 218 219
            android:id="@+id/confide_free_logo"
            android:layout_marginTop="@dimen/platform_dp_5"
            android:layout_marginStart="@dimen/platform_dp_8"
            >
        </ImageView>
    </FrameLayout>
    <View
        android:layout_width="match_parent"
        android:layout_height="0.5dp"
        app:layout_constraintTop_toBottomOf="@id/tv_content"
        android:layout_marginTop="@dimen/platform_dp_12"
        android:layout_marginLeft="@dimen/confide_dp_15"
        android:background="@color/confide_line"/>
220
</androidx.constraintlayout.widget.ConstraintLayout>