dynamic_fragment_publish_trend.xml 8.34 KB
Newer Older
konghaorui committed
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
    android:focusable="true"
    android:focusableInTouchMode="true"
    android:orientation="vertical">


    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:background="@color/dynamic_white">

        <EditText
            android:id="@+id/publish_trend_title_editext"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/dynamic_msg_system_press"
            android:gravity="center_vertical"
            android:hint="标题:准确概括你的问题,且不少于5个字"
            android:minHeight="50dp"
            android:maxLength="35"
            android:paddingLeft="15dp"
            android:paddingTop="13dp"
            android:paddingRight="15dp"
            android:paddingBottom="13dp"
            android:textColor="@color/dynamic_text_trend_title_black"
            android:textColorHint="@color/dynamic_text_trend_defult"
            android:textSize="17sp"
            tools:text="标题:说说你的标题:说说你的标题:说说你的困惑标题:说说你的困标题:说说你的困惑标题:说说你的困惑困惑标题:说说你的困惑" />

        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/publish_trend_title_editext">

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <EditText
                    android:id="@+id/publish_trend_content_editext"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="@color/dynamic_white"
                    android:focusable="true"
                    android:focusableInTouchMode="true"
                    android:gravity="left|top"
                    android:hint="1、清晰描述事情的背景及经过\n2、你想寻求哪方面的帮助\n这样更容易获得咨询师准确、专业的解答哦~"
                    android:includeFontPadding="false"
                    android:minLines="6"
                    android:padding="15dp"
                    android:paddingLeft="15dp"
                    android:textColor="@color/dynamic_text_trend_title_black"
                    android:textColorHint="@color/dynamic_text_trend_defult"
                    android:textSize="15sp" />

                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_below="@+id/publish_trend_content_editext"
                    android:layout_margin="15dp">

                    <TextView
                        android:id="@+id/publish_trend_bottom_topic_tv"
                        android:layout_width="wrap_content"
                        android:layout_height="24dp"
                        android:background="@drawable/dynamic_bg_topic"
                        android:gravity="center_vertical"
                        android:paddingLeft="10dp"
                        android:paddingRight="10dp"
                        android:text="# 选择话题"
                        android:textColor="@color/platform_color_666666"
                        android:textSize="11sp" />

                    <TextView
                        android:id="@+id/publish_trend_content_num_tv"
                        android:layout_width="wrap_content"
                        android:layout_height="24dp"
                        android:layout_alignParentRight="true"
                        android:layout_marginRight="15dp"
                        android:gravity="center_vertical"
                        android:includeFontPadding="false"
                        android:text="0/1000"
                        android:textColor="#FF757575"
                        android:textSize="11sp" />

                    <View
                        android:id="@+id/line"
                        android:layout_width="match_parent"
                        android:layout_height="1dp"
                        android:layout_below="@+id/publish_trend_content_num_tv"
                        android:layout_marginTop="15dp"
                        android:background="@color/platform_new_divide_color" />

                    <android.support.v7.widget.RecyclerView
                        android:id="@+id/publish_trend_img_rcv"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_below="@+id/line"
                        android:layout_marginTop="16dp"
                        android:paddingLeft="-5dp"
                        android:paddingRight="-5dp"
                        android:visibility="gone" />


                    <android.support.v7.widget.CardView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_below="@+id/line"
                        android:layout_marginLeft="1dp"
                        android:layout_marginTop="15dp"
                        android:layout_marginRight="1dp"
                        android:layout_marginBottom="@dimen/platform_dp_1"
                        android:elevation="1dp"
                        app:cardCornerRadius="6dp">

                        <RelativeLayout
                            android:id="@+id/publish_trend_ad_rel"
                            android:layout_width="match_parent"
                            android:layout_height="60dp"
                            android:background="@color/platform_color_F7F7F7"
                            android:visibility="gone"
                            tools:visibility="visible">

                            <ImageView
                                android:id="@+id/publish_trend_ad_iv"
                                android:layout_width="60dp"
                                android:layout_height="60dp"
                                android:layout_centerVertical="true"
                                android:scaleType="fitXY"
                                android:src="@drawable/dynamic_default_img" />

                            <ImageView
                                android:id="@+id/iv_fm"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_centerVertical="true"
                                android:layout_marginLeft="18dp"
                                android:src="@drawable/dynamic_img_trend_fm_play"
                                android:visibility="gone"
                                tools:visibility="visible" />

                            <TextView
                                android:id="@+id/publish_trend_ad_tv"
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:layout_centerVertical="true"
                                android:layout_marginLeft="15dp"
                                android:layout_marginRight="15dp"
                                android:layout_toRightOf="@+id/publish_trend_ad_iv"
                                android:maxLines="2"
                                android:text="测测你的童年阴影"
                                android:textColor="#333"
                                android:textSize="15sp" />
                        </RelativeLayout>
                    </android.support.v7.widget.CardView>


                </RelativeLayout>
            </RelativeLayout>
        </ScrollView>
    </RelativeLayout>

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

</LinearLayout>