confide_recommend_expert_item_view.xml 9.62 KB
Newer Older
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 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:cardElevation="1dp"
    app:cardCornerRadius="6dp"
    android:layout_marginLeft="@dimen/confide_dp_10"
    android:layout_marginBottom="2dp">
    <FrameLayout
        android:id="@+id/ll_layout"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <ImageView
            android:id="@+id/img_bg"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="fitXY"/>
        <TextView
            android:id="@id/tv_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textSize="@dimen/confide_dp_14"
            android:textColor="@color/white"
            android:layout_marginTop="@dimen/confide_dp_12"
            android:paddingTop="2dp"
            android:paddingBottom="1dp"
            android:paddingLeft="@dimen/confide_dp_10"
            android:paddingRight="@dimen/confide_dp_10"
            android:background="@drawable/confide_recommend_expert_title_bg"
            tools:text="情感恋爱"/>

        <android.support.v7.widget.CardView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="@dimen/confide_dp_12"
            android:layout_marginRight="@dimen/confide_dp_12"
            android:layout_marginTop="48dp"
            android:layout_marginBottom="@dimen/confide_dp_16"
            app:cardBackgroundColor="@color/white"
            app:cardCornerRadius="6dp"
            app:cardElevation="1dp">
            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">
                <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="在线"/>
                <android.support.v7.widget.CardView
                    android:id="@+id/cv_head"
                    android:layout_width="100dp"
                    android:layout_height="100dp"
                    android:layout_marginLeft="@dimen/confide_dp_12"
                    android:layout_marginTop="@dimen/confide_dp_20"
                    android:layout_marginBottom="@dimen/confide_dp_20"
                    app:cardCornerRadius="50dp"
                    app:cardElevation="0px">
                    <ImageView
                        android:id="@+id/img_head"
                        android:layout_width="100dp"
                        android:layout_height="100dp"
                        android:scaleType="fitXY" />
                </android.support.v7.widget.CardView>
                <ImageView
                    android:id="@+id/img_play"
                    android:layout_width="24dp"
                    android:layout_height="24dp"
                    android:layout_marginTop="91dp"
                    android:layout_marginLeft="84dp"
                    tools:background="@drawable/confide_paused"/>

                <TextView
                    android:id="@+id/tv_name"
                    android:layout_toRightOf="@+id/cv_head"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="@dimen/confide_dp_22"
                    android:layout_marginLeft="14dp"
                    android:textSize="@dimen/confide_dp_15"
                    android:textColor="#555555"
                    tools:text="姚雨晴"/>

                <ImageView
                    android:id="@+id/img_sex"
                    android:layout_toRightOf="@+id/tv_name"
                    android:layout_marginTop="25dp"
                    android:layout_marginLeft="6dp"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    tools:background="@drawable/confide_new_male"/>
                <TextView
                    android:id="@+id/tv_confideNum"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textSize="@dimen/confide_dp_11"
                    android:textColor="@color/_6"
                    android:layout_toRightOf="@+id/cv_head"
                    android:layout_below="@+id/tv_name"
                    android:layout_marginLeft="14dp"
                    android:layout_marginTop="10dp"
                    tools:text="8000人"/>
                <TextView
                    android:id="@+id/tv_tv_confideNumContent"
                    android:layout_below="@+id/tv_name"
                    android:layout_toRightOf="@+id/tv_confideNum"
                    android:layout_marginTop="10dp"
                    android:layout_marginRight="@dimen/confide_dp_16"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textSize="@dimen/confide_dp_11"
                    android:textColor="@color/_9"
                    android:text="向TA倾诉"/>
                <TextView
                    android:id="@+id/tv_Connection"
                    android:layout_below="@+id/tv_name"
                    android:layout_toRightOf="@+id/tv_tv_confideNumContent"
                    android:layout_marginTop="@dimen/confide_dp_10"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textSize="@dimen/confide_dp_11"
                    android:textColor="@color/_6"
                    tools:text="83%"/>
                <TextView
                    android:id="@+id/tv_ConnectionContent"
                    android:layout_below="@+id/tv_name"
                    android:layout_toRightOf="@+id/tv_Connection"
                    android:layout_marginTop="@dimen/confide_dp_10"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:textSize="@dimen/confide_dp_11"
                    android:textColor="@color/_9"
                    android:text="接通率"/>
                <LinearLayout
                    android:id="@+id/flowlayout_tag"
                    android:orientation="horizontal"
                    android:layout_below="@+id/tv_confideNum"
                    android:layout_toRightOf="@+id/cv_head"
                    android:layout_width="wrap_content"
                    android:layout_height="16dp"
                    android:layout_marginBottom="8dp"
                    android:layout_marginLeft="@dimen/confide_dp_12"
                    android:layout_marginRight="@dimen/confide_dp_10"
                    android:layout_marginTop="4dp" />
                <View
                    android:id="@+id/v_line"
                    android:layout_below="@+id/flowlayout_tag"
                    android:layout_toRightOf="@+id/cv_head"
                    android:layout_width="match_parent"
                    android:layout_height="0.5dp"
                    android:layout_marginLeft="@dimen/confide_dp_14"
                    android:layout_marginRight="@dimen/confide_dp_10"
                    android:layout_marginBottom="4dp"
                    android:background="@color/confide_line"/>
                <TextView
                    android:id="@+id/tv_content"
                    android:layout_below="@+id/v_line"
                    android:layout_toRightOf="@+id/cv_head"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="@dimen/confide_dp_14"
                    android:layout_marginRight="@dimen/confide_dp_10"
                    android:textSize="@dimen/confide_dp_11"
                    android:textColor="@color/_9"
                    android:lines="1"
                    android:ellipsize="end"
                    tools:text="没有人一出生就是完美的,只有不断的相信自...己…才能成就自己的梦想。"/>
            </RelativeLayout>
        </android.support.v7.widget.CardView>
        <TextView
            android:id="@+id/tv_confide"
            android:layout_width="128dp"
            android:layout_height="28dp"
            android:layout_marginTop="204dp"
            android:layout_marginBottom="@dimen/confide_dp_18"
            android:layout_gravity="center_horizontal"
            android:textSize="@dimen/confide_dp_12"
            android:textColor="@color/white"
            android:gravity="center"
            android:background="@drawable/confide_recommend_expert_btn_bg"
            android:text="向TA倾诉"/>
    </FrameLayout>
</android.support.v7.widget.CardView>