android去除標題欄
1. android studio如何去掉標題欄
在AS的歡迎界面可以刪除工程。 如果已經打開工程了,首先關閉工程:File→Close Project 到AS歡迎頁面後,將滑鼠移動到左側希望刪除的項目名上後,按下Delete按鍵,注意不要點擊!
2. android開發如何去掉標題欄
有三種方法
第一種:在代碼里實現:
this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉標題欄
記住:這句代碼要寫在setContentView()前面。
第二種:在清單文件中實現:
<application android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
這樣用可以將整個應用設置成無標題欄,如果只需要在一個Activity設置成一個無標題欄的形式,只要把上面的第三行代碼寫到某一個Activity裡面就可以了。
第三種:在style.xml文件里定義
<?xml version="1.0" encoding="UTF-8" ?>
<resources>
<style name="notitle">
<item name="android:windowNoTitle">true</item>
</style>
</resources>
然後面manifest.xml中引用就可以了
<application android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@style/notitle">
一般使用的第一種和第二種,第三種稍微麻煩一點。
3. android開發中怎麼去掉標題欄
去除標題欄title其實非常簡單,他有兩種方法,一種是在代碼中添加,另一種是在AndroidManifest.xml中添加:
1、在代碼中實現:
在此方法setContentView(R.layout.main)之前加入:
requestWindowFeature(Window.FEATURE_NO_TITLE);標題欄就沒有了。
2、在AndroidManifest.xml中實現:
注冊Activity時加上如下的一句配置就可以實現。
<activity android:name=".Activity"
android:theme="@android:style/Theme.NoTitleBar"
></activity>
4. 如何在Android中實現全屏,去掉標題欄效果
這是基礎問題啦,而且網路一下就能找到。我直接給個鏈接了。樓主貌似是個新手,多寫寫,看看開發文檔以後就會啦。下面給個鏈接。
http://blog.csdn.net/liudong123/article/details/7818531
順便說一下別用actionbar這種東西
5. android如何去掉標題欄陰影
在android中去掉標題欄有三種方法,它們也有各自的特點。 1.在代碼里實現 [java] view plain this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉標題欄 記住:這句代碼要寫在setContentView()前面。 2.在清單文件(manifest.xml)裡面實現 [java] view plain <application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar"> 這樣用可以將整個應用設置成無標題欄,如果只需要在一個Activity設置成一個無標題欄的形式,只要把上面的第三行代碼寫到某一個Activity裡面就可以了。 3.在style.xml文件里定義 [html] view plain <?xml version="1.0" encoding="UTF-8" ?> <resources> <style name="notitle"> <item name="android:windowNoTitle">true</item> </style> </resources> 然後面manifest.xml中引用就可以了,這種方法稍麻煩了些。 [html] view plain <application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/notitle"> 其實可以看得出來,第二種方法和第三種方法實質是一樣的,只不過第二種方法調用的是系統定義好的style.xml文件,而第三種方法則是在自己的應用里定義style.xml,然後再自己再調用,其實道理是一樣的,第三種方法做起來更有成就感。
6. android開發: 怎樣去掉應用程序中的標題欄求解答
樓主,這個問題我前幾天剛碰到過,剛剛調完。你不要在程序中寫這一句requestwindowfeature(window.feature_no_title);,把它換為
actionbar
actionbar=getsupportactionbar();
actionbar.hide();這兩句就行了,這樣你在標題欄就被隱藏起來,而且你點擊menu鍵也不會出錯了!你試一下,我的api也是19,我這樣寫就解決了。我的應用是一定要extends
actionbaractivity,所以最後只能找到這種方法,不能把它改為extends
activity.
7. Android開發如何去除標題欄title
方法1:每個Activity都有一個onCreate方法,如下
publicvoidonCreate(BundlesavedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.history);
}
在其中加入一下代碼即可去除標題欄
publicvoidonCreate(BundlesavedInstanceState){
super.onCreate(savedInstanceState);
this.requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉標題欄,一定要在setContentView之前
setContentView(R.layout.history);
}
方法2:在manifest.xml中配置
<applicationandroid:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar"><!--NoTitleBar就是沒有標題欄-->
除了沒有標題欄以外,開發者還可以自定義標題欄,讓應用更加美觀
8. Android怎麼取消標題欄默認內容
Android開發去除標題欄title其實非常簡單,他有兩種方法,一種是在代碼中添加,另一種是在AndroidManifest.xml中添加:
1、在代碼中實現:
在此方法setContentView(R.layout.main)之前加入:
requestWindowFeature(Window.FEATURE_NO_TITLE);標題欄就沒有了。
2、在AndroidManifest.xml中實現:
注冊Activity時加上如下的一句配置就可以實現。
<activity android:name=".Activity"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
9. android 怎麼去掉activity的標題欄
去掉標題欄有兩種方式: 一、在xml中配置:android:theme="@android:style/Theme.NoTitleBar" 查看原帖>>