1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 |
package com.hhh.changep_w_picpath; import .Activity; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; public class ChangeImage extends Activity {
public void onCreate(Bundle savedInstanceState)
{
super .onCreate(savedInstanceState);
//无title
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams. FLAG_FULLSCREEN);
setContentView(R.layout.main);
} |
1
2
3
4
5
6
7
8 |
< activity android:name = ".ChangeImage"
android:theme = "@android:style/Theme.NoTitleBar.Fullscreen"
android:label = "@string/app_name" >
< intent-filter >
< action android:name = "android.intent.action.MAIN" />
< category android:name = "android.intent.category.LAUNCHER" />
</ intent-filter > </ activity > |