Android apps typically start with a welcome interface, like QQHD boot. More generous and gorgeous. Echocardiography is not as good as action, there is time to achieve a similar effect, hehe.
Observe that the welcome interface of QQHD is full screen, this is good to do. Here's how Android apps call Full-screen mode.
There are two ways to make an Android screen full of screens.
The code is as follows |
Copy Code |
@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.welcome); } |
. configuration androidmanifest.xml
The code is as follows |
Copy Code |
<application android:icon= "@drawable/ic_launcher" Android:label= "@string/app_name" > <activity Android:name= ". Welcome " Android:label= "@string/app_name" Android:theme= "@android: Style/theme.notitlebar.fullscreen" > <intent-filter> <action android:name= "Android.intent.action.MAIN"/> <category android:name= "Android.intent.category.LAUNCHER"/> </intent-filter> </activity> <activity Android:name= ". Aboutapp " Android:label= "@string/aboutapp_title" Android:theme= "@android: Style/theme.dialog" /> </application> |