Commit 79f4503b by zxl

修改部分崩溃问题

修改app图标
parent b15e1735
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
/captures /captures
.externalNativeBuild .externalNativeBuild
app/release/* app/release/*
*.apk` *.apk
\ No newline at end of file \ No newline at end of file
...@@ -85,10 +85,10 @@ ...@@ -85,10 +85,10 @@
> >
<meta-data <meta-data
android:name="design_width_in_dp" android:name="design_width_in_dp"
android:value="360" /> android:value="1080" />
<meta-data <meta-data
android:name="design_height_in_dp" android:name="design_height_in_dp"
android:value="640" /> android:value="1920" />
<activity android:name=".ui.login.LoginActivity" <activity android:name=".ui.login.LoginActivity"
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:configChanges="orientation|screenSize|keyboardHidden" android:configChanges="orientation|screenSize|keyboardHidden"
......
...@@ -12,6 +12,9 @@ import com.lzy.okgo.cookie.store.MemoryCookieStore; ...@@ -12,6 +12,9 @@ import com.lzy.okgo.cookie.store.MemoryCookieStore;
import java.util.Map; import java.util.Map;
import java.util.logging.Level; import java.util.logging.Level;
import me.jessyan.autosize.AutoSizeConfig;
import me.jessyan.autosize.unit.Subunits;
/** /**
* Created by 赵新龙 on 2019/6/14. * Created by 赵新龙 on 2019/6/14.
*/ */
...@@ -25,6 +28,16 @@ public class BaseApplication extends Application { ...@@ -25,6 +28,16 @@ public class BaseApplication extends Application {
super.onCreate(); super.onCreate();
_context = getApplicationContext(); _context = getApplicationContext();
initOkgo(); initOkgo();
initAutoSize();
}
private void initAutoSize() {
AutoSizeConfig.getInstance()
.setBaseOnWidth(true)
.getUnitsManager()
.setSupportDP(false)
.setSupportSP(false)
.setSupportSubunits(Subunits.NONE);
} }
public static synchronized BaseApplication context() { public static synchronized BaseApplication context() {
......
...@@ -185,16 +185,25 @@ public class LoadingActivity extends BaseActivity { ...@@ -185,16 +185,25 @@ public class LoadingActivity extends BaseActivity {
public void onViewClicked(View view) { public void onViewClicked(View view) {
switch (view.getId()) { switch (view.getId()) {
case R.id.btn_xq: case R.id.btn_xq:
if (currentPosition != 0) { if (null != info && null != info.getResult() && null != info.getResult().getDetail_list() && info.getResult().getRecord_list().size() > 0) {
setPosition(0); if (currentPosition != 0) {
setRecycleView(); setPosition(0);
setRecycleView();
}
}else{
ShowMsgUtils.ShowMessage(mContext,"请先扫描运单号获取数据");
} }
break; break;
case R.id.btn_ss: case R.id.btn_ss:
if (currentPosition != 1) { if (null != info && null != info.getResult() && null != info.getResult().getDetail_list() && info.getResult().getRecord_list().size() > 0) {
setPosition(1); if (currentPosition != 1) {
setRecycleView(); setPosition(1);
setRecycleView();
}
}else{
ShowMsgUtils.ShowMessage(mContext,"请先扫描运单号获取数据");
} }
break; break;
} }
} }
......

2.89 KB | W: | H:

4.75 KB | W: | H:

app/src/main/res/mipmap-hdpi/ic_launcher.png
app/src/main/res/mipmap-hdpi/ic_launcher.png
app/src/main/res/mipmap-hdpi/ic_launcher.png
app/src/main/res/mipmap-hdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin

4.79 KB | W: | H:

5.38 KB | W: | H:

app/src/main/res/mipmap-hdpi/ic_launcher_round.png
app/src/main/res/mipmap-hdpi/ic_launcher_round.png
app/src/main/res/mipmap-hdpi/ic_launcher_round.png
app/src/main/res/mipmap-hdpi/ic_launcher_round.png
  • 2-up
  • Swipe
  • Onion skin

2.01 KB | W: | H:

3.38 KB | W: | H:

app/src/main/res/mipmap-mdpi/ic_launcher.png
app/src/main/res/mipmap-mdpi/ic_launcher.png
app/src/main/res/mipmap-mdpi/ic_launcher.png
app/src/main/res/mipmap-mdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin

2.72 KB | W: | H:

3.65 KB | W: | H:

app/src/main/res/mipmap-mdpi/ic_launcher_round.png
app/src/main/res/mipmap-mdpi/ic_launcher_round.png
app/src/main/res/mipmap-mdpi/ic_launcher_round.png
app/src/main/res/mipmap-mdpi/ic_launcher_round.png
  • 2-up
  • Swipe
  • Onion skin

4.38 KB | W: | H:

7.03 KB | W: | H:

app/src/main/res/mipmap-xhdpi/ic_launcher.png
app/src/main/res/mipmap-xhdpi/ic_launcher.png
app/src/main/res/mipmap-xhdpi/ic_launcher.png
app/src/main/res/mipmap-xhdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin

6.73 KB | W: | H:

7.71 KB | W: | H:

app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
  • 2-up
  • Swipe
  • Onion skin

6.24 KB | W: | H:

12.7 KB | W: | H:

app/src/main/res/mipmap-xxhdpi/ic_launcher.png
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin

10.2 KB | W: | H:

13.9 KB | W: | H:

app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
  • 2-up
  • Swipe
  • Onion skin

8.91 KB | W: | H:

19 KB | W: | H:

app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  • 2-up
  • Swipe
  • Onion skin

14.8 KB | W: | H:

20.6 KB | W: | H:

app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment