• android 去掉actionbar 隐藏标题栏 全屏


    去掉actionbar :getActionBar().hide();

     全屏方法一:

    <activity
                android:name="com.imax.weather.MainActivity"
                android:label="@string/app_name"
                android:screenOrientation="portrait"
                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>

    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);

        }

  • 相关阅读:
    2016.11.30
    java韩顺平老师视频有需要可以留言
    UESTC 1425 Another LCIS
    hdu 3308 LCIS
    HDU 3308 LCIS 线段树区间更新
    poj crane
    poj1436 Horizontally Visible Segments
    编程习惯记录
    poj 3225 Help with Intervals
    UVA 1513 Movie collection
  • 原文地址:https://www.cnblogs.com/kaixiner/p/3837204.html
Copyright © 2020-2023  润新知