File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
java/com/blankj/androidutilcode/feature/core/screen Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public void initData(@Nullable Bundle bundle) {
34
34
if (ScreenUtils .isPortrait ()) {
35
35
ScreenUtils .adaptScreen4VerticalSlide (this , 720 );
36
36
} else {
37
+ ScreenUtils .setFullScreen (this );
37
38
ScreenUtils .adaptScreen4HorizontalSlide (this , 720 );
38
39
}
39
40
}
Original file line number Diff line number Diff line change 8
8
android : layout_width =" 2000dp"
9
9
android : layout_height =" match_parent" >
10
10
11
- <TextView
12
- android : id =" @+id/tv_fullscreen"
13
- android : layout_width =" wrap_content"
14
- android : layout_height =" match_parent"
15
- android : gravity =" center"
16
- android : onClick =" toggleFullScreen"
17
- android : text =" Toggle Full Screen"
18
- android : textSize =" @dimen/font_24" />
19
-
20
11
<TextView
21
12
android : id =" @+id/tv_up"
22
13
style =" @style/TextStyle"
23
14
android : layout_width =" 2000dp"
24
15
android : layout_height =" 360dp"
25
16
android : layout_alignParentTop =" true"
26
- android : layout_toRightOf =" @id/tv_fullscreen"
27
17
android : background =" @color/colorAccentHalfTrans"
28
18
android : gravity =" center_vertical"
29
19
android : text =" 360dp" />
34
24
android : layout_width =" 2000dp"
35
25
android : layout_height =" 360dp"
36
26
android : layout_alignParentBottom =" true"
37
- android : layout_toRightOf =" @id/tv_fullscreen"
38
27
android : background =" @color/colorPrimaryHalfTrans"
39
28
android : gravity =" center_vertical"
40
29
android : text =" 360dp" />
You can’t perform that action at this time.
0 commit comments