-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
|
|
- android:layout_width="match_parent"
|
4
|
|
- android:layout_height="56dp"
|
|
2
|
+<com.android.views.swipeLayout.SwipeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
5
|
3
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
6
|
|
- android:background="@color/white"
|
7
|
|
- android:padding="3dp">
|
8
|
|
-
|
9
|
|
- <com.android.views.circleimageview.CircleImageView
|
10
|
|
- android:id="@+id/iv_group_avatar"
|
11
|
|
- android:layout_width="36dp"
|
12
|
|
- android:layout_height="36dp"
|
13
|
|
- android:layout_margin="5dp"
|
14
|
|
- app:civ_border_width="1dp"
|
15
|
|
- app:civ_border_color="@color/pop_bg_color"
|
16
|
|
- android:src="@drawable/default_avatar"/>
|
17
|
|
-
|
18
|
|
- <TextView
|
19
|
|
- android:id="@+id/tv_group_name"
|
20
|
|
- android:layout_width="wrap_content"
|
21
|
|
- android:layout_height="wrap_content"
|
22
|
|
- android:layout_marginLeft="8dp"
|
23
|
|
- android:layout_toRightOf="@id/iv_group_avatar"
|
24
|
|
- android:singleLine="true"
|
25
|
|
- android:textColor="@color/dark_grey"
|
26
|
|
- android:textSize="14sp" />
|
27
|
|
-
|
28
|
|
- <TextView
|
29
|
|
- android:id="@+id/tv_group_create_time"
|
30
|
|
- android:layout_width="wrap_content"
|
31
|
|
- android:layout_height="wrap_content"
|
32
|
|
- android:layout_below="@id/tv_group_name"
|
33
|
|
- android:layout_marginLeft="8dp"
|
34
|
|
- android:layout_marginTop="6dp"
|
35
|
|
- android:layout_toRightOf="@id/iv_group_avatar"
|
36
|
|
- android:textColor="@color/grey"
|
37
|
|
- android:textSize="14sp" />
|
38
|
|
-
|
39
|
|
-</RelativeLayout>
|
|
4
|
+ android:layout_width="match_parent"
|
|
5
|
+ android:layout_height="56dp">
|
|
6
|
+
|
|
7
|
+ <LinearLayout
|
|
8
|
+ android:layout_width="80dp"
|
|
9
|
+ android:layout_height="match_parent">
|
|
10
|
+
|
|
11
|
+ <TextView
|
|
12
|
+ android:id="@+id/tv_trash"
|
|
13
|
+ android:layout_width="match_parent"
|
|
14
|
+ android:layout_height="match_parent"
|
|
15
|
+ android:background="@color/red"
|
|
16
|
+ android:gravity="center"
|
|
17
|
+ android:text="@string/delete"
|
|
18
|
+ android:textColor="@color/white"
|
|
19
|
+ android:textSize="18sp" />
|
|
20
|
+ </LinearLayout>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+ <RelativeLayout
|
|
24
|
+ android:id="@+id/history_group_item_view"
|
|
25
|
+ android:layout_width="match_parent"
|
|
26
|
+ android:layout_height="56dp"
|
|
27
|
+ android:background="@color/white"
|
|
28
|
+ android:padding="3dp">
|
|
29
|
+
|
|
30
|
+ <com.android.views.circleimageview.CircleImageView
|
|
31
|
+ android:id="@+id/iv_group_avatar"
|
|
32
|
+ android:layout_width="36dp"
|
|
33
|
+ android:layout_height="36dp"
|
|
34
|
+ android:layout_margin="5dp"
|
|
35
|
+ android:src="@drawable/default_avatar"
|
|
36
|
+ app:civ_border_color="@color/pop_bg_color"
|
|
37
|
+ app:civ_border_width="1dp" />
|
|
38
|
+
|
|
39
|
+ <TextView
|
|
40
|
+ android:id="@+id/tv_group_name"
|
|
41
|
+ android:layout_width="wrap_content"
|
|
42
|
+ android:layout_height="wrap_content"
|
|
43
|
+ android:layout_marginLeft="8dp"
|
|
44
|
+ android:layout_toRightOf="@id/iv_group_avatar"
|
|
45
|
+ android:singleLine="true"
|
|
46
|
+ android:textColor="@color/dark_grey"
|
|
47
|
+ android:textSize="14sp" />
|
|
48
|
+
|
|
49
|
+ <TextView
|
|
50
|
+ android:id="@+id/tv_group_create_time"
|
|
51
|
+ android:layout_width="wrap_content"
|
|
52
|
+ android:layout_height="wrap_content"
|
|
53
|
+ android:layout_below="@id/tv_group_name"
|
|
54
|
+ android:layout_marginLeft="8dp"
|
|
55
|
+ android:layout_marginTop="6dp"
|
|
56
|
+ android:layout_toRightOf="@id/iv_group_avatar"
|
|
57
|
+ android:textColor="@color/grey"
|
|
58
|
+ android:textSize="14sp" />
|
|
59
|
+
|
|
60
|
+ </RelativeLayout>
|
|
61
|
+</com.android.views.swipeLayout.SwipeLayout>
|
|
|
@@ -246,4 +246,8 @@
|
246
|
246
|
<string name="guide_app_join_tour">加入旅行团</string>
|
247
|
247
|
|
248
|
248
|
<string name="gather_info">请%1$s前到%2$s集合</string>
|
|
249
|
+
|
|
250
|
+ <string name="group_photo_not_null">该群里已有照片,无法删除</string>
|
|
251
|
+
|
|
252
|
+ <string name="group_admin_not_me">您不是该群的管理员,无法删除</string>
|
249
|
253
|
</resources>
|