File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
java/com/blankj/androidutilcode/activity
utilcode/src/main/java/com/blankj/utilcode/utils Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import com .blankj .androidutilcode .R ;
9
9
import com .blankj .utilcode .utils .ActivityUtils ;
10
+ import com .blankj .utilcode .utils .ToastUtils ;
10
11
11
12
/**
12
13
* <pre>
@@ -46,7 +47,11 @@ public void onClick(View view) {
46
47
switch (view .getId ()) {
47
48
case R .id .btn_launch_image_activity :
48
49
ActivityUtils .launchActivity (packageName , className );
50
+ break ;
51
+ default :
52
+
49
53
break ;
50
54
}
51
55
}
56
+
52
57
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <ScrollView
3
- xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ <ScrollView xmlns : android =" http://schemas.android.com/apk/res/android"
4
3
android : layout_width =" match_parent"
5
4
android : layout_height =" match_parent" >
6
5
16
15
style =" @style/BtnFont"
17
16
android : layout_width =" match_parent"
18
17
android : layout_height =" wrap_content"
19
- android : text =" @string/activity.start_imageActivity"
20
- />
18
+ android : text =" @string/activity.start_imageActivity" />
21
19
22
20
<TextView
23
21
android : id =" @+id/tv_about_activity"
24
22
style =" @style/Font"
25
23
android : layout_width =" match_parent"
26
24
android : layout_height =" wrap_content"
27
- android : gravity =" center"
28
- />
25
+ android : gravity =" center" />
29
26
30
27
</LinearLayout >
31
28
</ScrollView >
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ private CloseUtils() {
21
21
/**
22
22
* 关闭IO
23
23
*
24
- * @param closeables closeable
24
+ * @param closeables closeables
25
25
*/
26
26
public static void closeIO (Closeable ... closeables ) {
27
27
if (closeables == null ) return ;
@@ -39,7 +39,7 @@ public static void closeIO(Closeable... closeables) {
39
39
/**
40
40
* 安静关闭IO
41
41
*
42
- * @param closeables closeable
42
+ * @param closeables closeables
43
43
*/
44
44
public static void closeIOQuietly (Closeable ... closeables ) {
45
45
if (closeables == null ) return ;
You can’t perform that action at this time.
0 commit comments