国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 系統(tǒng) > Android > 正文

Android實(shí)現(xiàn)隱藏狀態(tài)欄和標(biāo)題欄

2020-04-11 11:30:31
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

隱藏標(biāo)題欄需要使用預(yù)定義樣式:android:theme=”@android:style/Theme.NoTitleBar”.
隱藏狀態(tài)欄:android:theme=”@android:style/Theme.NoTitleBar.Fullscreen”.

<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"   package="de.vogella.android.temperature"   android:versionCode="1"   android:versionName="1.0">  <application android:icon="@drawable/icon" android:label="@string/app_name">    <activity android:name=".Convert"         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>   </application>  <uses-sdk android:minSdkVersion="9" /> </manifest>
@Overridepublic void onCreate(Bundle savedInstanceState) {  super.onCreate(savedInstanceState);  // hide titlebar of application  // must be before setting the layout  requestWindowFeature(Window.FEATURE_NO_TITLE);  // hide statusbar of Android  // could also be done later  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,      WindowManager.LayoutParams.FLAG_FULLSCREEN);  setContentView(R.layout.main);  text = (EditText) findViewById(R.id.EditText01); }

以上所述就是本文的全部?jī)?nèi)容了,希望大家能夠喜歡。

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 邹城市| 湘乡市| 如东县| 兴文县| 彭山县| 涿州市| 荔浦县| 盐城市| 江永县| 米易县| 望谟县| 金塔县| 新营市| 司法| 永登县| 边坝县| 漯河市| 龙江县| 保山市| 闸北区| 大方县| 武川县| 兰州市| 漾濞| 育儿| 铜山县| 景德镇市| 五家渠市| 北京市| 镇康县| 武汉市| 隆安县| 冷水江市| 治县。| 会同县| 盐池县| 灵山县| 始兴县| 南川市| 伊宁市| 本溪|