Android full screen Activity

Androidmanifest.xml

You need to use NoactionBar theme

----
----
<activity android:name=".SplashActivity"
    android:theme="@style/Theme.AppCompat.Light.NoActionBar">

---
----

Activity class (SplashActivity.java)

public class SplashActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        
        super.onCreate(savedInstanceState);


        setContentView(R.layout.activity_splash);
    }
}
Author: bm on September 29, 2016
Category: Android
Tags: ,

Your comment:

Your Name

Comment:




Last articles