1
1
<FrameLayout
2
- xmlns : android = " http://schemas.android.com/apk/res/android "
3
- xmlns : app =" http://schemas.android.com/apk/res-auto "
4
- xmlns : tools =" http://schemas.android.com/tools "
5
- android : id = " @+id/container "
6
- android : layout_width =" match_parent"
7
- android : layout_height =" match_parent"
8
- tools : context =" .SampleActivity" >
2
+ android:id= " @+id/container "
3
+ xmlns:android =" http://schemas.android.com/apk/res/android "
4
+ xmlns:app =" http://schemas.android.com/apk/res-auto "
5
+ xmlns:tools= " http://schemas.android.com/tools "
6
+ android:layout_width=" match_parent"
7
+ android:layout_height=" match_parent"
8
+ tools:context=" .SampleActivity" >
9
9
10
- <FrameLayout
11
- android : layout_width =" 80dp"
12
- android : layout_height =" wrap_content" >
10
+ <FrameLayout
11
+ android:layout_width=" 80dp"
12
+ android:layout_height=" wrap_content" >
13
13
14
- <com .github.zagum.expandicon.ExpandIconView
15
- android : id =" @+id/expand_icon1"
16
- android : layout_width =" 24dp"
17
- android : layout_height =" 24dp"
18
- android : layout_gravity =" center_horizontal"
19
- android : layout_marginTop =" 16dp"
20
- app : eiv_animationDuration =" 300"
21
- app : eiv_color =" #000"
22
- app : eiv_roundedCorners =" false"
23
- app : eiv_switchColor =" false" />
14
+ <com .github.zagum.expandicon.ExpandIconView
15
+ android:id=" @+id/expand_icon1"
16
+ android:layout_width=" 24dp"
17
+ android:layout_height=" 24dp"
18
+ android:layout_gravity=" center_horizontal"
19
+ android:layout_marginTop=" 16dp"
20
+ app:eiv_animationDuration=" 300"
21
+ app:eiv_color=" #000"
22
+ app:eiv_roundedCorners=" false"
23
+ app:eiv_switchColor=" false" />
24
24
25
- <com .github.zagum.expandicon.ExpandIconView
26
- android : id =" @+id/expand_icon2"
27
- android : layout_width =" 48dp"
28
- android : layout_height =" 48dp"
29
- android : layout_gravity =" center_horizontal"
30
- android : layout_marginTop =" 56dp"
31
- app : eiv_animationDuration =" 300"
32
- app : eiv_color =" #000"
33
- app : eiv_colorLess =" @color/colorPrimary"
34
- app : eiv_colorMore =" @color/colorAccent"
35
- app : eiv_padding =" 8dp"
36
- app : eiv_roundedCorners =" false"
37
- app : eiv_switchColor =" true" />
25
+ <com .github.zagum.expandicon.ExpandIconView
26
+ android:id=" @+id/expand_icon2"
27
+ android:layout_width=" 48dp"
28
+ android:layout_height=" 48dp"
29
+ android:layout_gravity=" center_horizontal"
30
+ android:layout_marginTop=" 56dp"
31
+ app:eiv_animationDuration=" 300"
32
+ app:eiv_color=" #000"
33
+ app:eiv_colorIntermediate=" #8ad750"
34
+ app:eiv_colorLess=" @color/colorPrimary"
35
+ app:eiv_colorMore=" @color/colorAccent"
36
+ app:eiv_padding=" 8dp"
37
+ app:eiv_roundedCorners=" false"
38
+ app:eiv_switchColor=" true" />
38
39
39
- </FrameLayout >
40
+ <com .github.zagum.expandicon.ExpandIconView
41
+ android:id=" @+id/expand_icon4"
42
+ android:layout_width=" 48dp"
43
+ android:layout_height=" 48dp"
44
+ android:layout_gravity=" center_horizontal"
45
+ android:layout_marginTop=" 100dp"
46
+ app:eiv_animationDuration=" 300"
47
+ app:eiv_color=" #000"
48
+ app:eiv_colorLess=" @color/colorPrimary"
49
+ app:eiv_colorMore=" @color/colorAccent"
50
+ app:eiv_padding=" 8dp"
51
+ app:eiv_roundedCorners=" false"
52
+ app:eiv_switchColor=" true" />
40
53
41
- <FrameLayout
42
- android : layout_width =" match_parent"
43
- android : layout_height =" 150dp" >
54
+ </FrameLayout >
44
55
45
- <View
46
- android : id =" @+id/swipe_detector"
47
- android : layout_width =" match_parent"
48
- android : layout_height =" 150dp"
49
- android : layout_marginLeft =" 80dp"
50
- android : background =" #f7f1f1" />
56
+ <FrameLayout
57
+ android:layout_width=" match_parent"
58
+ android:layout_height=" 150dp" >
51
59
52
- < TextView
53
- android : layout_width = " wrap_content "
54
- android : layout_height = " wrap_content "
55
- android : layout_gravity = " center "
56
- android : text = " @string/swipe_finger_up_and_down "
57
- android : textStyle = " italic " />
60
+ < View
61
+ android:id= " @+id/swipe_detector "
62
+ android:layout_width= " match_parent "
63
+ android:layout_height= " 150dp "
64
+ android:layout_marginLeft= " 80dp "
65
+ android:background= " #f7f1f1 " />
58
66
59
- </FrameLayout >
67
+ <TextView
68
+ android:layout_width=" wrap_content"
69
+ android:layout_height=" wrap_content"
70
+ android:layout_gravity=" center"
71
+ android:text=" @string/swipe_finger_up_and_down"
72
+ android:textStyle=" italic" />
60
73
74
+ </FrameLayout >
61
75
62
- <FrameLayout
63
- android : id =" @+id/click"
64
- android : layout_width =" match_parent"
65
- android : layout_height =" 48dp"
66
- android : layout_marginTop =" 200dp"
67
- android : background =" ?selectableItemBackground" >
68
76
69
- <com .github.zagum.expandicon.ExpandIconView
70
- android : id =" @+id/expand_icon3"
71
- android : layout_width =" 24dp"
72
- android : layout_height =" 24dp"
73
- android : layout_gravity =" center_vertical"
74
- android : layout_marginLeft =" 16dp"
75
- app : eiv_animationDuration =" 300"
76
- app : eiv_color =" #000"
77
- app : eiv_colorLess =" @color/colorPrimary"
78
- app : eiv_colorMore =" @color/colorAccent"
79
- app : eiv_roundedCorners =" false"
80
- app : eiv_switchColor =" true" />
77
+ <FrameLayout
78
+ android:id=" @+id/click"
79
+ android:layout_width=" match_parent"
80
+ android:layout_height=" 48dp"
81
+ android:layout_marginTop=" 200dp"
82
+ android:background=" ?selectableItemBackground" >
81
83
82
- <TextView
83
- android : layout_width =" wrap_content"
84
- android : layout_height =" wrap_content"
85
- android : layout_gravity =" center"
86
- android : text =" @string/click"
87
- android : textStyle =" bold" />
84
+ <com .github.zagum.expandicon.ExpandIconView
85
+ android:id=" @+id/expand_icon3"
86
+ android:layout_width=" 24dp"
87
+ android:layout_height=" 24dp"
88
+ android:layout_gravity=" center_vertical"
89
+ android:layout_marginLeft=" 16dp"
90
+ app:eiv_animationDuration=" 300"
91
+ app:eiv_color=" #000"
92
+ app:eiv_colorLess=" @color/colorPrimary"
93
+ app:eiv_colorMore=" @color/colorAccent"
94
+ app:eiv_roundedCorners=" false"
95
+ app:eiv_switchColor=" true" />
88
96
89
- </FrameLayout >
97
+ <TextView
98
+ android:layout_width=" wrap_content"
99
+ android:layout_height=" wrap_content"
100
+ android:layout_gravity=" center"
101
+ android:text=" @string/click"
102
+ android:textStyle=" bold" />
103
+
104
+ </FrameLayout >
90
105
91
106
</FrameLayout >
0 commit comments