Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example;
- import android.graphics.drawable.Drawable;
- import android.support.v4.content.ContextCompat;
- import android.widget.LinearLayout;
- import com.reactnativenavigation.controllers.SplashActivity;
- public class MainActivity extends SplashActivity {
- @Override
- public LinearLayout createSplashLayout() {
- LinearLayout splash = new LinearLayout(this);
- Drawable launch_screen_bitmap = ContextCompat.getDrawable(getApplicationContext(),R.drawable.launch_screen_bitmap);
- splash.setBackground(launch_screen_bitmap);
- return splash;
- }
- }
Add Comment
Please, Sign In to add comment