mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 09:59:31 +08:00
android 增加启动视图
This commit is contained in:
parent
1f7633e930
commit
4d470cd046
2 changed files with 18 additions and 0 deletions
|
@ -1,8 +1,26 @@
|
|||
package com.timepill;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
import com.facebook.react.ReactActivity;
|
||||
import com.reactnativenavigation.NavigationActivity;
|
||||
|
||||
public class MainActivity extends NavigationActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(this.createSplashLayout());
|
||||
}
|
||||
|
||||
public View createSplashLayout() {
|
||||
LayoutInflater inflate = LayoutInflater.from(this);
|
||||
View view = inflate.inflate(R.layout.splash_layout,null);
|
||||
return view;
|
||||
}
|
||||
}
|
||||
|
|
BIN
android/app/src/main/res/mipmap-xxhdpi/logo_icon.png
Normal file
BIN
android/app/src/main/res/mipmap-xxhdpi/logo_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
Loading…
Reference in a new issue