File tree Expand file tree Collapse file tree
java/com/blankj/androidutilcode/feature/core/screen Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353 android : theme =" @style/AppTheme" >
5454 <activity
5555 android : name =" .MainActivity"
56- android : screenOrientation =" user "
56+ android : screenOrientation =" sensor "
5757 android : windowSoftInputMode =" stateHidden|adjustPan" >
5858 <intent-filter >
5959 <action android : name =" android.intent.action.MAIN" />
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ private void updateLayout() {
7676 ViewGroup .LayoutParams upLayoutParams = tvUp .getLayoutParams ();
7777 ViewGroup .LayoutParams downLayoutParams = tvDown .getLayoutParams ();
7878 if (ScreenUtils .isFullScreen (this )) {
79- int height = 720 / 2 / 2 ;
79+ int height = 360 / 2 ;
8080 String s = height + "dp" ;
8181 upLayoutParams .height = SizeUtils .dp2px (this , height );
8282 tvUp .setLayoutParams (upLayoutParams );
@@ -86,7 +86,7 @@ private void updateLayout() {
8686 tvDown .setLayoutParams (downLayoutParams );
8787 tvDown .setText (s );
8888 } else {
89- int height = 720 / 2 / 2 - statusBarHeightInDp / 2 ;
89+ int height = 360 / 2 - statusBarHeightInDp / 2 ;
9090 String s = height + "dp" ;
9191 upLayoutParams .height = SizeUtils .dp2px (this , height );
9292 tvUp .setLayoutParams (upLayoutParams );
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ def configLibAndroidDomain(Project pro) {
146146def configAppDependencies (Project pro ) {
147147 pro. dependencies {
148148 implementation fileTree(include : [' *.jar' ], dir : ' libs' )
149- // implementation project(':utilcode')
149+ implementation project(' :utilcode' )
150150 implementation project(' :subutil' )
151151
152152 implementation depConfig. support. appcompat_v7
@@ -155,7 +155,7 @@ def configAppDependencies(Project pro) {
155155 // LeakCanary
156156 debugImplementation depConfig. leakcanary. android
157157 releaseImplementation depConfig. leakcanary. android_no_op
158- implementation ' com.blankj:utilcode:1.18.0'
158+ // implementation 'com.blankj:utilcode:1.18.0'
159159 }
160160}
161161
You can’t perform that action at this time.
0 commit comments