提交 3ab62ce3 authored 作者: lgd's avatar lgd

1.添加splash,解决bug

2.//todo  回款管理的客户接口
上级 b1e5a4a2
...@@ -35,6 +35,13 @@ ...@@ -35,6 +35,13 @@
android:launchMode="singleTask" android:launchMode="singleTask"
android:theme="@style/Work.Base" android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan"> android:windowSoftInputMode="adjustPan">
</activity>
<activity
android:name=".ui.activity.SplashActivity"
android:configChanges="keyboardHidden|orientation"
android:launchMode="singleTop"
android:theme="@style/Work.Base"
android:windowSoftInputMode="adjustPan">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
......
package com.wd.workoffice.ui.activity;
import android.os.Handler;
import com.wd.workoffice.R;
import com.wd.workoffice.app.WorkBaseActivity;
public class SplashActivity extends WorkBaseActivity {
@Override
protected void initView() {
new Handler().postDelayed(new Runnable() {
public void run() {
startActivity(MainActivity.class);
finish();
}
}, 1000);
}
@Override
protected void initData() {
}
@Override
protected void initEvent() {
}
@Override
protected int layoutId() {
return R.layout.activity_splash;
}
}
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:id="@+id/iv_img"
android:layout_width="match_parent"
android:src="@mipmap/splash"
android:layout_height="match_parent"
android:layout_centerInParent="true" />
</RelativeLayout>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论