Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove the apllication bar at the top of a android page?

Tags:

android

how can i remove these application bar at the top of any android app which i create? in the case that it is not possible, is it possible to change it? (i don't mean the text, i mean the layout and style)

screen

like image 495
gurehbgui Avatar asked Jan 20 '26 14:01

gurehbgui


2 Answers

You can use this call on the onCreate method of the activity

requestWindowFeature(Window.FEATURE_NO_TITLE);
like image 160
Zhertal Avatar answered Jan 23 '26 04:01

Zhertal


If i understand your problem, then it's very simple.

Just add this line, to your activity (in the manifest xml file) :

android:theme="@android:style/Theme.NoTitleBar"

For example :

<activity android:name=".TestActivity"

android:theme="@android:style/Theme.NoTitleBar">
<intent-filter>
    <action android:name="android.intent.action.MAIN" />
</intent-filter>

</activity>
like image 41
Wyzard Avatar answered Jan 23 '26 02:01

Wyzard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!