nl-18 ol-18"> 18
        android:text="发布"
19
        android:textColor="#222"
20
        android:textSize="18sp" />
21
22
    <View
23
        android:layout_width="match_parent"
24
        android:layout_height="1dp"
25
        android:layout_below="@+id/topic_back"
26
        android:background="#ddd" />
27
28
    <View
29
        android:layout_width="match_parent"
30
        android:layout_height="60dp"
31
        android:layout_below="@+id/topic_back" />
32
33
    <RelativeLayout
34
        android:id="@+id/topic_input_ll"
35
        android:layout_width="match_parent"
36
        android:layout_height="30dp"
37
        android:layout_below="@+id/topic_back"
38
        android:layout_margin="15dp"
39
        android:background="@drawable/topic_search_con"
40
        android:orientation="horizontal">
41
42
        <View
43
            android:id="@+id/topic_input_start"
44
            android:layout_width="14dp"
45
            android:layout_height="14dp"
46
            android:layout_centerVertical="true"
47
            android:layout_marginStart="8dp"
48
            android:layout_marginEnd="4dp"
49
            android:background="#b2de" />
50
51
        <View
52
            android:id="@+id/topic_input_end"
53
            android:layout_width="14dp"
54
            android:layout_height="14dp"
55
            android:layout_alignParentEnd="true"
56
            android:layout_centerVertical="true"
57
            android:layout_marginStart="4dp"
58
            android:layout_marginEnd="8dp"
59
            android:background="#b2de" />
60
61
        <EditText
62
            android:id="@+id/topic_con"
63
            android:layout_width="match_parent"
64
            android:layout_height="match_parent"
65
            android:layout_toStartOf="@+id/topic_input_end"
66
            android:layout_toEndOf="@+id/topic_input_start"
67
            android:background="@null"
68
            android:gravity="center_vertical"
69
            android:hint="请输入你感兴趣的话题"
70
            android:textColorHint="#555555"
71
            android:textSize="14sp" />
72
    </RelativeLayout>
73
74
    <View
75
        android:id="@+id/topic_input_below_line"
76
        android:layout_width="match_parent"
77
        android:layout_height="10dp"
78
        android:layout_below="@+id/topic_input_ll"
79
        android:background="#f4f4f4" />
80
81
    <android.support.v7.widget.RecyclerView
82
        android:id="@+id/topic_rv"
83
        android:layout_width="match_parent"
84
        android:layout_height="match_parent"
85
        android:layout_below="@+id/topic_input_below_line" />
86
87
    <TextView
88
        android:id="@+id/topic_not_con"
89
        android:layout_width="match_parent"
90
        android:layout_height="match_parent"
91
        android:layout_below="@+id/topic_input_below_line"
92
        android:gravity="center"
93
        android:text="还没有任何内容哦,快来抢沙发~"
94
        android:textColor="#555"
95
        android:textSize="14sp"
96
        android:visibility="gone" />
97
98
    <LinearLayout
99
        android:id="@+id/topic_retry_ll"
100
        android:layout_width="match_parent"
101
        android:layout_height="match_parent"
102
        android:layout_below="@+id/topic_input_below_line"
103
        android:gravity="center"
104
        android:orientation="vertical"
105
        android:visibility="gone">
106
107
108
        <TextView
109
            android:layout_width="wrap_content"
110
            android:layout_height="wrap_content"
111
            android:layout_marginBottom="20dp"
112
            android:text="网络跑调了,请重试~"
113
            android:textColor="#555"
114
            android:textSize="14sp" />
115
116
        <TextView
117
            android:id="@+id/topic_retry"
118
            android:layout_width="123dp"
119
            android:layout_height="40dp"
120
            android:background="@drawable/bg_write_stroke"
121
            android:gravity="center"
122
            android:text="点击重试"
123
            android:textColor="#555"
124
            android:textSize="14sp" />
125
126
    </LinearLayout>
127
</RelativeLayout>

+ 28 - 0
app/src/main/res/layout/item_topic.xml

@ -0,0 +1,28 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="60dp"
5
    android:paddingStart="15dp"
6
    android:paddingEnd="15dp">
7
8
    <ImageView
9
        android:id="@+id/item_topic_img"
10
        android:layout_width="50dp"
11
        android:layout_height="43dp"
12
        android:layout_centerVertical="true"
13
        android:background="#000" />
14
15
    <TextView
16
        android:id="@+id/item_topic_name"
17
        android:layout_width="match_parent"
18
        android:layout_height="wrap_content"
19
        android:layout_centerVertical="true"
20
        android:layout_marginStart="10dp"
21
        android:layout_toEndOf="@+id/item_topic_img"
22
        android:ellipsize="end"
23
        android:maxLines="2"
24
        android:text="adadasd"
25
        android:textColor="#444444"
26
        android:textSize="14sp" />
27
28
</RelativeLayout>

+ 17 - 0
app/src/main/res/layout/title_item_topic.xml

@ -0,0 +1,17 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:app="http://schemas.android.com/apk/res-auto"
4
    android:layout_width="match_parent"
5
    android:layout_height="50dp">
6
7
    <TextView
8
        android:layout_width="wrap_content"
9
        android:layout_height="wrap_content"
10
        android:layout_marginStart="15dp"
11
        android:text="推荐话题"
12
        android:textColor="#444444"
13
        android:textSize="15sp"
14
        app:layout_constraintBottom_toTopOf="parent"
15
        app:layout_constraintStart_toStartOf="parent"
16
        app:layout_constraintTop_toBottomOf="parent" />
17
</android.support.constraint.ConstraintLayout>

dudu/cdzApp - Gogs: Go Git Service

5 Коммиты (ba28557434583c747ea1d2a7192e353aace52c78)

Автор SHA1 Сообщение Дата
  huyuguo b98aa2e34f 代码修改 лет назад: 6
  huyuguo 3f53132d2f 支付宝sdk更新 лет назад: 6
  huyuguo 58251b6308 gradle 升级 лет назад: 7
  1145873331@qq.com e1cf244fe0 remove Useless dependence лет назад: 7
  dxh 06bd894653 init лет назад: 7