1
1
<RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ xmlns : tools =" http://schemas.android.com/tools"
2
3
android : layout_width =" match_parent"
3
4
android : layout_height =" wrap_content"
4
5
xmlns : app =" http://schemas.android.com/apk/res-auto"
5
- xmlns : tools = " http://schemas.android.com/tools "
6
+ android : id = " @+id/notification_view "
6
7
android : foreground =" ?selectableItemBackground"
7
8
android : minHeight =" 72dp" >
8
- <com .daimajia.swipe.SwipeLayout android : layout_height =" match_parent"
9
- android : layout_width =" match_parent"
10
- android : id =" @+id/swipeLayout"
11
- >
12
-
13
- <LinearLayout
14
- android : id =" @+id/bottom"
15
- android : layout_width =" match_parent"
16
- android : layout_height =" match_parent" >
17
- <RelativeLayout
18
- android : id =" @+id/bottom_wrapper_child1"
19
- android : background =" @color/deleteRed"
20
- android : layout_width =" match_parent"
21
- android : layout_height =" match_parent" >
22
- <ImageView
23
- android : id =" @+id/star"
24
- android : layout_alignParentTop =" true"
25
- android : layout_centerHorizontal =" true"
26
- app : srcCompat =" @drawable/ic_done_black_24dp"
27
- android : layout_width =" 20dp"
28
- android : layout_height =" 20dp" />
29
- </RelativeLayout >
30
- </LinearLayout >
31
-
32
- <RelativeLayout
33
- android : id =" @+id/notification_view"
34
- android : layout_width =" match_parent"
35
- android : layout_height =" match_parent" >
36
9
37
- <androidx .appcompat.widget.AppCompatImageView
38
- android : id =" @+id/icon"
39
- android : layout_width =" 40dp"
40
- android : layout_height =" 40dp"
41
- android : layout_marginStart =" 16dp"
42
- android : layout_marginLeft =" 16dp"
43
- android : layout_marginTop =" 16dp"
44
- android : background =" @android:color/white"
45
- android : scaleType =" centerCrop"
46
- app : srcCompat =" @drawable/ic_message_black_24dp"
10
+ <androidx .appcompat.widget.AppCompatImageView
11
+ android : id =" @+id/icon"
12
+ android : layout_width =" 40dp"
13
+ android : layout_height =" 40dp"
14
+ android : layout_marginLeft =" 16dp"
15
+ android : layout_marginStart =" 16dp"
16
+ android : layout_marginTop =" 16dp"
17
+ android : background =" @android:color/white"
18
+ android : scaleType =" centerCrop"
19
+ app : srcCompat =" @drawable/ic_message_black_24dp"
20
+ app : tint =" @color/primaryDarkColor"
21
+ />
47
22
48
- />
23
+ <TextView
24
+ android : id =" @+id/time"
25
+ android : layout_width =" wrap_content"
26
+ android : layout_height =" wrap_content"
27
+ android : layout_alignParentEnd =" true"
28
+ android : layout_alignParentRight =" true"
29
+ android : layout_marginLeft =" 16dp"
30
+ android : layout_marginRight =" 16dp"
31
+ android : layout_marginTop =" 16dp"
32
+ android : textAppearance =" @style/TextAppearance.AppCompat.Caption"
33
+ />
49
34
50
- <TextView
51
- android : id =" @+id/time"
52
- android : layout_width =" wrap_content"
53
- android : layout_height =" wrap_content"
54
- android : layout_alignParentEnd =" true"
55
- android : layout_alignParentRight =" true"
56
- android : layout_marginLeft =" 16dp"
57
- android : layout_marginTop =" 16dp"
58
- android : layout_marginRight =" 16dp"
59
- android : textAppearance =" @style/TextAppearance.AppCompat.Caption"
60
- tools : text =" 2 June" />
61
-
62
- <TextView
63
- android : id =" @+id/title"
64
- android : layout_width =" match_parent"
65
- android : layout_height =" wrap_content"
66
- android : layout_alignTop =" @id/time"
67
- android : layout_alignParentTop =" true"
68
- android : layout_marginStart =" 16dp"
69
- android : layout_marginLeft =" 16dp"
70
- android : layout_toStartOf =" @id/time"
71
- android : layout_toLeftOf =" @id/time"
72
- android : layout_toEndOf =" @id/icon"
73
- android : layout_toRightOf =" @id/icon"
74
- android : ellipsize =" end"
75
- android : padding =" 12dp"
76
- android : textAppearance =" @style/TextAppearance.AppCompat.Body2"
77
- tools : text =" You just made your tenth edit" />
78
- </RelativeLayout >
79
- </com .daimajia.swipe.SwipeLayout>
35
+ <TextView
36
+ android : id =" @+id/title"
37
+ android : layout_width =" match_parent"
38
+ android : layout_height =" wrap_content"
39
+ android : layout_alignTop =" @id/time"
40
+ android : layout_marginLeft =" 16dp"
41
+ android : layout_marginStart =" 16dp"
42
+ android : layout_toEndOf =" @id/icon"
43
+ android : layout_toLeftOf =" @id/time"
44
+ android : layout_toRightOf =" @id/icon"
45
+ android : layout_toStartOf =" @id/time"
46
+ android : ellipsize =" end"
47
+ android : layout_alignParentTop =" true"
48
+ android : textAppearance =" @style/TextAppearance.AppCompat.Body2"
49
+ android : padding =" 12dp"
50
+ />
80
51
</RelativeLayout >
0 commit comments