Skip to content

Commit a31510e

Browse files
committed
see 08/10 log
1 parent 15726d6 commit a31510e

File tree

14 files changed

+46
-67
lines changed

14 files changed

+46
-67
lines changed

README-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
4343

44-
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.18.6-brightgreen.svg
44+
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.19.0-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

4747
[apisvg]: https://img.shields.io/badge/API-14+-brightgreen.svg

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If this project helps you a lot and you want to support the project's developmen
4141

4242
[logo]: https://raw.githubusercontent.com/Blankj/AndroidUtilCode/master/art/logo.png
4343

44-
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.18.6-brightgreen.svg
44+
[aucsvg]: https://img.shields.io/badge/AndroidUtilCode-v1.19.0-brightgreen.svg
4545
[auc]: https://github.com/Blankj/AndroidUtilCode
4646

4747
[apisvg]: https://img.shields.io/badge/API-14+-brightgreen.svg

app/src/main/java/com/blankj/androidutilcode/MainActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.blankj.androidutilcode.feature.core.CoreUtilActivity;
1313
import com.blankj.androidutilcode.feature.sub.SubUtilActivity;
1414
import com.blankj.utilcode.util.BarUtils;
15+
import com.blankj.utilcode.util.ScreenUtils;
1516

1617
/**
1718
* <pre>

app/src/main/java/com/blankj/androidutilcode/UtilsApp.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
import com.squareup.leakcanary.LeakCanary;
1010

1111
import java.util.ArrayList;
12-
import java.util.Arrays;
13-
import java.util.Collection;
14-
import java.util.Collections;
15-
import java.util.LinkedList;
16-
import java.util.List;
1712

1813
/**
1914
* <pre>

app/src/main/java/com/blankj/androidutilcode/base/BaseActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import android.view.LayoutInflater;
99
import android.view.View;
1010

11+
import com.blankj.utilcode.util.ScreenUtils;
12+
1113
/**
1214
* <pre>
1315
* author: Blankj

app/src/main/java/com/blankj/androidutilcode/feature/core/screen/ScreenAdaptActivity.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@
55
import android.os.Bundle;
66
import android.support.annotation.Nullable;
77
import android.view.View;
8-
import android.view.ViewGroup;
98
import android.widget.TextView;
109

1110
import com.blankj.androidutilcode.R;
1211
import com.blankj.androidutilcode.base.BaseActivity;
13-
import com.blankj.utilcode.util.BarUtils;
14-
import com.blankj.utilcode.util.LogUtils;
1512
import com.blankj.utilcode.util.ScreenUtils;
16-
import com.blankj.utilcode.util.SizeUtils;
1713

1814
/**
1915
* <pre>
@@ -36,9 +32,9 @@ public static void start(Context context) {
3632
@Override
3733
public void initData(@Nullable Bundle bundle) {
3834
if (ScreenUtils.isPortrait()) {
39-
ScreenUtils.adaptScreen4VerticalSlide(this, 360);
35+
ScreenUtils.adaptScreen4VerticalSlide(this, 720);
4036
} else {
41-
ScreenUtils.adaptScreen4HorizontalSlide(this, 360);
37+
ScreenUtils.adaptScreen4HorizontalSlide(this, 720);
4238
}
4339
}
4440

app/src/main/res_core/layout-land/activity_screen_adapt.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,23 @@
2121
android:id="@+id/tv_up"
2222
style="@style/TextStyle"
2323
android:layout_width="2000dp"
24-
android:layout_height="180dp"
24+
android:layout_height="360dp"
2525
android:layout_alignParentTop="true"
2626
android:layout_toRightOf="@id/tv_fullscreen"
2727
android:background="@color/colorAccentHalfTrans"
2828
android:gravity="center_vertical"
29-
android:text="180dp" />
29+
android:text="360dp" />
3030

3131
<TextView
3232
android:id="@+id/tv_down"
3333
style="@style/TextStyle"
3434
android:layout_width="2000dp"
35-
android:layout_height="180dp"
35+
android:layout_height="360dp"
3636
android:layout_alignParentBottom="true"
3737
android:layout_toRightOf="@id/tv_fullscreen"
3838
android:background="@color/colorPrimaryHalfTrans"
3939
android:gravity="center_vertical"
40-
android:text="180dp" />
40+
android:text="360dp" />
4141

4242

4343
</RelativeLayout>

app/src/main/res_core/layout-port/activity_screen_adapt.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@
1010

1111
<TextView
1212
style="@style/TextStyle"
13-
android:layout_width="180dp"
13+
android:layout_width="360dp"
1414
android:layout_height="2000dp"
1515
android:layout_alignParentLeft="true"
1616
android:layout_below="@id/tv_fullscreen"
1717
android:background="@color/colorAccentHalfTrans"
1818
android:gravity="center_horizontal"
19-
android:text="180dp" />
19+
android:text="360dp" />
2020

2121
<TextView
2222
style="@style/TextStyle"
23-
android:layout_width="180dp"
23+
android:layout_width="360dp"
2424
android:layout_height="2000dp"
2525
android:layout_alignParentRight="true"
2626
android:layout_below="@id/tv_fullscreen"
2727
android:background="@color/colorPrimaryHalfTrans"
2828
android:gravity="center_horizontal"
29-
android:text="180dp" />
29+
android:text="360dp" />
3030

3131
</RelativeLayout>
3232
</ScrollView>

config.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ ext {
66
compileSdkVersion: 27,
77
minSdkVersion : 14,
88
targetSdkVersion : 27,
9-
versionCode : 1_018_006,
10-
versionName : '1.18.6'// E.g 1.9.72 => 1,009,072
9+
versionCode : 1_019_000,
10+
versionName : '1.19.0'// E.g 1.9.72 => 1,009,072
1111
]
1212

1313
versionConfig = [
@@ -167,7 +167,7 @@ def configAppDependencies(Project pro) {
167167
// LeakCanary
168168
debugImplementation depConfig.leakcanary.android
169169
releaseImplementation depConfig.leakcanary.android_no_op
170-
// implementation 'com.blankj:utilcode:1.18.6'
170+
// implementation 'com.blankj:utilcode:1.18.7'
171171
}
172172
}
173173

update_log.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* 18/08/10 修复 ScreenUtils#adaptxx 导致获取状态栏和导航栏尺寸不对问题,发布 1.19.0
12
* 18/08/09 新增 IntentUtils#isIntentAvailable,ToastUtils 传入空显示 null,发布 1.18.6
23
* 18/08/08 修复 ScreenUtils#adaptxx 在第三方 SDK 会出现的问题,发布 1.18.5
34
* 18/08/07 修复 ScreenUtils#adaptxx 在 API 26 以下无效的 bug,发布 1.18.4

0 commit comments

Comments
 (0)