confide_home_activity.xml 10.2 KB
Newer Older
1 2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
霍志良 committed
3 4 5 6 7 8
    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"
    android:background="@color/white"
    android:orientation="vertical">
9 10 11

    <include layout="@layout/confide_title_bar" />

霍志良 committed
12 13 14 15 16 17 18
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <com.jcodecraeer.xrecyclerview.XRecyclerView
            android:id="@+id/rv_list"
            android:layout_width="match_parent"
19 20
            android:layout_height="match_parent"
            />
霍志良 committed
21 22 23 24

        <androidx.constraintlayout.widget.ConstraintLayout
            android:id="@+id/quick_consult_card"
            android:layout_width="match_parent"
范玉宾 committed
25
            android:layout_height="52dp"
霍志良 committed
26 27 28
            android:layout_alignParentBottom="true"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
万齐军 committed
29
            android:layout_marginBottom="20dp"
霍志良 committed
30 31 32
            android:background="@drawable/confide_card_consult_bg"
            android:orientation="horizontal"
            android:paddingLeft="@dimen/platform_dp_8"
万齐军 committed
33
            android:paddingTop="1dp"
万齐军 committed
34
            android:elevation="2dp"
万齐军 committed
35
            android:paddingBottom="1dp"
霍志良 committed
36
            android:paddingRight="@dimen/platform_dp_8"
范玉宾 committed
37
            android:visibility="visible">
38

霍志良 committed
39 40 41 42
            <ImageView
                android:id="@+id/confide_logo"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
范玉宾 committed
43 44
                android:layout_marginStart="8dp"
                android:src="@drawable/confide_call_logo"
霍志良 committed
45 46
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintStart_toStartOf="parent"
47 48 49 50
                app:layout_constraintTop_toTopOf="parent"
                android:layout_marginTop="@dimen/platform_dp_12"
                android:layout_marginBottom="@dimen/platform_dp_12"
                >
51

霍志良 committed
52
            </ImageView>
53

霍志良 committed
54 55 56 57 58 59 60
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:ellipsize="end"
                android:gravity="center_vertical"
                android:maxLines="1"
                android:text="智能推荐,一键倾诉"
范玉宾 committed
61
                android:textColor="@color/white"
霍志良 committed
62
                android:textSize="14dp"
范玉宾 committed
63
                android:textStyle="bold"
霍志良 committed
64 65 66 67
                android:layout_marginStart="@dimen/platform_dp_8"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintStart_toEndOf="@id/confide_logo"
                app:layout_constraintTop_toTopOf="parent" />
68
            <FrameLayout
霍志良 committed
69
                android:layout_width="wrap_content"
70
                android:layout_height="wrap_content"
霍志良 committed
71
                app:layout_constraintEnd_toEndOf="parent"
72 73 74 75 76 77 78 79 80 81
                android:layout_marginBottom="@dimen/platform_dp_12"
                app:layout_constraintTop_toTopOf="@id/confide_logo"
                app:layout_constraintBottom_toBottomOf="@id/confide_logo"

                >
                <TextView
                    android:id="@+id/quick_consult_btn"
                    android:layout_width="wrap_content"
                    android:layout_height="30dp"
                    android:background="@drawable/confide_consult_btn_bg"
万齐军 committed
82
                    android:layout_marginRight="24dp"
83 84 85 86 87 88
                    android:gravity="center"
                    android:paddingTop="@dimen/platform_dp_5"
                    android:paddingBottom="@dimen/platform_dp_5"
                    android:paddingLeft="@dimen/platform_dp_7"
                    android:paddingRight="@dimen/platform_dp_7"
                    android:text="我要倾诉"
万齐军 committed
89
                    android:layout_marginTop="@dimen/platform_dp_12"
范玉宾 committed
90
                    android:textColor="#55CDA0"
91
                    android:textSize="13sp"
范玉宾 committed
92 93
                    android:textStyle="bold"
                    app:drawableRightCompat="@drawable/confide_right_arrow" />
94

万齐军 committed
95 96 97 98 99 100 101 102 103
                <ImageView
                    android:id="@+id/confideRed"
                    android:layout_width="@dimen/platform_dp_40"
                    android:layout_height="@dimen/confide_dp_25"
                    android:layout_gravity="right|top"
                    android:visibility="gone"
                    android:layout_marginEnd="10dp"
                    android:src="@drawable/confide__free" />

104
                <!--<TextView
万齐军 committed
105 106 107 108 109 110 111 112 113 114
                    android:id="@+id/confide_Free"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="@drawable/bg_confide_free"
                    android:layout_gravity="right|top"
                    android:paddingLeft="5dp"
                    android:paddingTop="2dp"
                    android:paddingRight="5dp"
                    android:paddingBottom="2dp"
                    android:text="首单免费"
万齐军 committed
115
                    android:visibility="gone"
万齐军 committed
116
                    android:textColor="@color/white"
117 118 119 120 121 122 123 124 125 126 127 128 129 130
                    android:textSize="11sp" />-->

                <com.facebook.drawee.view.SimpleDraweeView
                    android:id="@+id/confide_Free"
                    android:layout_width="@dimen/platform_dp_64"
                    android:layout_height="@dimen/platform_dp_34"
                    app:layout_constraintCircle="@+id/layoutCall"
                    android:paddingLeft="5dp"
                    android:layout_marginTop="-7dp"
                    android:paddingRight="5dp"
                    android:paddingBottom="2dp"
                    android:layout_gravity="right|top"
                    android:visibility="gone"
                    />
131 132
        </FrameLayout>

霍志良 committed
133
        </androidx.constraintlayout.widget.ConstraintLayout>
134

霍志良 committed
135 136 137 138 139 140 141
        <View
            android:id="@+id/v_zhezhao"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginTop="48dp"
            android:background="#80000000"
            android:visibility="gone" />
142

143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
        <RelativeLayout
            android:id="@+id/rl_search_head"
            android:layout_width="match_parent"
            android:layout_height="@dimen/platform_dp_48"
            android:background="@color/white"
            android:visibility="gone"
            tools:visibility="gone">

            <View
                android:id="@+id/view_search_input_bg"
                android:layout_width="match_parent"
                android:layout_height="32dp"
                android:layout_centerVertical="true"
                android:layout_marginLeft="@dimen/confide_dp_15"
                android:layout_marginRight="@dimen/confide_dp_15"
                android:background="@drawable/confide_bg_hot_search_input"
                android:tag="tag_search_input_bg" />

            <ImageView
                android:id="@+id/iv_search_icon"
                android:layout_width="14dp"
                android:layout_height="14dp"
                android:layout_centerVertical="true"
                android:layout_marginLeft="@dimen/platform_dp_25"
                android:layout_marginRight="10dp"
                android:scaleType="centerCrop"
                android:src="@drawable/confide_icon_input_search"
                android:tag="tag_search_input_img" />

172
            <TextView
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
                android:id="@+id/etSearch"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_marginRight="20dp"
                android:layout_toLeftOf="@+id/iv_delete_icon"
                android:layout_toRightOf="@id/iv_search_icon"
                android:background="@null"
                android:cursorVisible="true"
                android:hint="请输入倾诉师姓名"
                android:imeOptions="actionSearch"
                android:maxLength="100"
                android:singleLine="true"
                android:tag="tag_search_input_edit"
                android:textColor="#242424"
                android:textColorHint="#b3b3b3"
                android:textCursorDrawable="@drawable/confide_edit_cursor_drawable"
                android:textSize="13sp" />

            <ImageView
                android:id="@+id/iv_delete_icon"
                android:layout_width="14dp"
                android:layout_height="14dp"
                android:layout_alignRight="@+id/view_search_input_bg"
                android:layout_centerVertical="true"
                android:layout_marginRight="12dp"
                android:scaleType="centerCrop"
                android:src="@drawable/platform_delete"
                android:visibility="invisible" />


        </RelativeLayout>

霍志良 committed
206 207 208 209 210
        <com.ydl.confide.home.widget.ConfideHomeFilterView
            android:id="@+id/v_filterView"
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:background="@color/white"
211
            android:layout_below="@+id/rl_search_head"
212 213
            android:visibility="gone"
            tools:visibility="gone"/>
214

万齐军 committed
215 216 217 218 219 220 221 222
        <View
            android:id="@+id/vFilterLine"
            android:layout_width="match_parent"
            android:layout_below="@+id/v_filterView"
            android:visibility="gone"
            android:layout_height="1px"
            android:background="#E1E1E4" />

霍志良 committed
223 224 225 226 227 228 229 230 231
        <com.ydl.ydlcommon.mvp.lce.view.YDLStateView
            android:id="@+id/lce_state_view"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/rv_list"
            android:layout_alignTop="@+id/rv_list"
            android:layout_alignRight="@+id/rv_list"
            android:layout_alignBottom="@+id/rv_list"
            android:visibility="gone" />
232

霍志良 committed
233
    </RelativeLayout>
234 235

</LinearLayout>