1

我正在尝试使第一个活动全屏,如果用户单击“下一个按钮”,它将显示下一个带有标题和状态栏的活动

<activity
        android:name=".firstACT"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >...</activity>

谢谢和对不起我的英语

4

2 回答 2

3

要制作Activity全屏:

您要么以编程方式进行:

public class FullScreen extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
                                WindowManager.LayoutParams.FLAG_FULLSCREEN);

        setContentView(R.layout.main);
    }
}

或者您在AndroidManifest.xml文件中执行此操作:

<activity android:name=".ActivityName"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
</activity>
于 2013-01-17T20:27:03.663 回答
-1

这样做,

<activity
        android:name=".MainSplashScreen"
        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=".MainActivity"
        android:label="@string/app_name"
        android:theme="@style/CustomActionBarTheme" >
    </activity>
于 2015-04-01T07:52:43.033 回答