dynamic_fragment_publish_trend.xml 7.82 KB
Newer Older
YKai committed
1
<?xml version="1.0" encoding="utf-8"?>
2
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
YKai committed
3 4
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
霍志良 committed
5
    android:id="@+id/trends_publish_question"
YKai committed
6 7
    android:layout_width="match_parent"
    android:layout_height="match_parent"
霍志良 committed
8
    android:background="@color/dynamic_white"
YKai committed
9 10 11
    android:focusable="true"
    android:focusableInTouchMode="true"
    android:orientation="vertical">
霍志良 committed
12

霍志良 committed
13 14 15
    <androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
霍志良 committed
16 17
        android:paddingBottom="50dp">

霍志良 committed
18
        <RelativeLayout
YKai committed
19 20
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
霍志良 committed
21
            android:background="@color/dynamic_white"
霍志良 committed
22
            app:layout_constraintStart_toStartOf="parent"
霍志良 committed
23 24
            app:layout_constraintTop_toTopOf="parent">

25 26
            <EditText
                android:id="@+id/publish_trend_title_editext"
YKai committed
27
                android:layout_width="match_parent"
28
                android:layout_height="wrap_content"
霍志良 committed
29
                android:layout_alignParentTop="true"
霍志良 committed
30
                android:background="@color/dynamic_white"
31
                android:gravity="center_vertical"
霍志良 committed
32
                android:hint="请输入困扰您的问题"
33
                android:maxLength="35"
霍志良 committed
34
                android:minHeight="50dp"
35 36 37 38
                android:paddingLeft="15dp"
                android:paddingTop="13dp"
                android:paddingRight="15dp"
                android:textColor="@color/dynamic_text_trend_title_black"
霍志良 committed
39
                android:textColorHint="#bfbfbf"
霍志良 committed
40
                android:textSize="24sp"
41
                tools:text="标题:说说你的标题:说说你的标题:说说你的困惑标题:说说你的困标题:说说你的困惑标题:说说你的困惑困惑标题:说说你的困惑" />
霍志良 committed
42

霍志良 committed
43 44 45 46 47
            <View
                android:id="@+id/lineTitle"
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_below="@+id/publish_trend_title_editext"
霍志良 committed
48
                android:layout_marginLeft="15dp"
霍志良 committed
49 50
                android:layout_marginTop="6dp"
                android:background="#eae9e9" />
霍志良 committed
51

霍志良 committed
52 53 54 55
            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/lineTitle"
霍志良 committed
56
                android:orientation="vertical">
霍志良 committed
57

霍志良 committed
58 59 60 61 62 63 64 65
                <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"
霍志良 committed
66 67
                    android:hint="这一刻的想法,晒给懂你的人...
"
霍志良 committed
68
                    android:includeFontPadding="false"
霍志良 committed
69
                    android:minLines="10"
霍志良 committed
70 71 72 73
                    android:padding="15dp"
                    android:paddingLeft="15dp"
                    android:textColor="@color/dynamic_text_trend_title_black"
                    android:textColorHint="#bfbfbf"
霍志良 committed
74 75
                    android:textSize="17sp" />

霍志良 committed
76 77 78 79 80 81 82 83 84
                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/publish_trend_img_rcv"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_below="@+id/publish_trend_content_editext"
                    android:layout_marginTop="16dp"
                    android:paddingLeft="@dimen/platform_dp_12"
                    android:paddingRight="@dimen/platform_dp_12"
                    android:visibility="gone" />
霍志良 committed
85

霍志良 committed
86

霍志良 committed
87
            </RelativeLayout>
88
        </RelativeLayout>
霍志良 committed
89 90
    </androidx.core.widget.NestedScrollView>

霍志良 committed
91
    <RelativeLayout
92 93
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
霍志良 committed
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
        android:background="@color/white"
        android:paddingLeft="@dimen/platform_dp_15"
        android:paddingTop="@dimen/platform_dp_5"
        android:paddingRight="@dimen/platform_dp_15"
        android:paddingBottom="@dimen/platform_dp_5"
        android:id="@+id/rl_topic"
        app:layout_constraintBottom_toTopOf="@id/ll_bottom_img_emoji">

        <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="#999999"
            android:textSize="13sp" />

        <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="12dp"
            android:gravity="center_vertical"
            android:includeFontPadding="false"
            android:text="0/1000"
            android:textColor="#bbbbbb"
            android:textSize="15sp" />

        <androidx.cardview.widget.CardView
            android:id="@+id/publish_trend_ad_relcardview"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/publish_trend_content_num_tv"
            android:visibility="gone"
            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">

                <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>
        </androidx.cardview.widget.CardView>


    </RelativeLayout>

    <include
178
        android:id="@+id/ll_bottom_img_emoji"
霍志良 committed
179 180 181 182
        layout="@layout/dynamic_layout_publish_trend_bottom"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent" />
183
</androidx.constraintlayout.widget.ConstraintLayout>