1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ <ScrollView xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
xmlns : app =" http://schemas.android.com/apk/res-auto"
4
4
xmlns : tools =" http://schemas.android.com/tools"
5
5
android : layout_width =" match_parent"
6
6
android : layout_height =" match_parent"
7
- android : orientation =" vertical"
8
7
tools : context =" .activities.EasyPhotoActivity" >
9
8
10
- <Button
11
- android : id =" @+id/takePhoto"
12
- android : text =" 拍照"
9
+ <LinearLayout
13
10
android : layout_width =" match_parent"
14
- android : layout_height =" wrap_content" />
11
+ android : layout_height =" wrap_content"
12
+ android : orientation =" vertical" >
15
13
16
- <Button
17
- android : id =" @+id/selectPhoto "
18
- android : text =" 选择图片 "
19
- android : layout_width =" match_parent"
20
- android : layout_height =" wrap_content" />
14
+ <Button
15
+ android : id =" @+id/takePhoto "
16
+ android : text =" 拍照 "
17
+ android : layout_width =" match_parent"
18
+ android : layout_height =" wrap_content" />
21
19
22
- <Button
23
- android : id =" @+id/takePhoto_zoom "
24
- android : text =" 拍照——图片裁剪 "
25
- android : layout_width =" match_parent"
26
- android : layout_height =" wrap_content" />
20
+ <Button
21
+ android : id =" @+id/selectPhoto "
22
+ android : text =" 选择图片 "
23
+ android : layout_width =" match_parent"
24
+ android : layout_height =" wrap_content" />
27
25
28
- <Button
29
- android : id =" @+id/selectPhoto_zoom"
30
- android : text =" 选择图片-图片裁剪"
31
- android : layout_width =" match_parent"
32
- android : layout_height =" wrap_content" />
26
+ <Button
27
+ android : id =" @+id/getPhoto"
28
+ android : text =" 拍照/选择图片"
29
+ android : layout_width =" match_parent"
30
+ android : layout_height =" wrap_content" />
31
+
32
+ <Button
33
+ android : id =" @+id/takePhoto_zoom"
34
+ android : text =" 拍照——图片裁剪"
35
+ android : layout_width =" match_parent"
36
+ android : layout_height =" wrap_content" />
37
+
38
+ <Button
39
+ android : id =" @+id/selectPhoto_zoom"
40
+ android : text =" 选择图片-图片裁剪"
41
+ android : layout_width =" match_parent"
42
+ android : layout_height =" wrap_content" />
43
+
44
+ <Button
45
+ android : id =" @+id/indicate_img_path"
46
+ android : text =" 使用默认缓存地址"
47
+ android : layout_width =" match_parent"
48
+ android : layout_height =" wrap_content" />
49
+
50
+ <Button
51
+ android : id =" @+id/takeVideo"
52
+ android : text =" 视频录制"
53
+ android : layout_width =" match_parent"
54
+ android : layout_height =" wrap_content" />
55
+
56
+ <Button
57
+ android : id =" @+id/selectVideo"
58
+ android : text =" 选择视频"
59
+ android : layout_width =" match_parent"
60
+ android : layout_height =" wrap_content" />
61
+
62
+ <Button
63
+ android : id =" @+id/getVideo"
64
+ android : text =" 录制视频/选择视频"
65
+ android : layout_width =" match_parent"
66
+ android : layout_height =" wrap_content" />
67
+
68
+ <ImageView
69
+ android : id =" @+id/showImg"
70
+ android : layout_width =" wrap_content"
71
+ android : layout_height =" wrap_content"
72
+ android : src =" @mipmap/ic_launcher"
73
+ android : layout_gravity =" center_horizontal" />
74
+
75
+ <Button
76
+ android : id =" @+id/takeAudio"
77
+ android : text =" 音频录制"
78
+ android : layout_width =" match_parent"
79
+ android : layout_height =" wrap_content" />
80
+
81
+ <Button
82
+ android : id =" @+id/selectAudio"
83
+ android : text =" 选择音频"
84
+ android : layout_width =" match_parent"
85
+ android : layout_height =" wrap_content" />
86
+
87
+ <Button
88
+ android : id =" @+id/getAudio"
89
+ android : text =" 录制音频/选择音频"
90
+ android : layout_width =" match_parent"
91
+ android : layout_height =" wrap_content" />
92
+
93
+ <Button
94
+ android : id =" @+id/selectNormalFile"
95
+ android : text =" 选择文件"
96
+ android : layout_width =" match_parent"
97
+ android : layout_height =" wrap_content" />
98
+
99
+ </LinearLayout >
33
100
34
- <Button
35
- android : id =" @+id/indicate_img_path"
36
- android : text =" 使用默认缓存地址"
37
- android : layout_width =" match_parent"
38
- android : layout_height =" wrap_content" />
39
101
40
- <ImageView
41
- android : id =" @+id/showImg"
42
- android : layout_width =" match_parent"
43
- android : layout_height =" match_parent"
44
- android : src =" @mipmap/ic_launcher"
45
- android : layout_gravity =" center_horizontal" />
46
102
47
- </LinearLayout >
103
+ </ScrollView >
0 commit comments