user3419071
user3419071

Reputation: 11

Remove only the title bar

i just tried to remove the title bar from my project but it also removes the bottom bar that i use it for option menu to display there. Is there any way that i can to remove only the title bar?

thanks

Upvotes: 1

Views: 56

Answers (3)

Alok Tiwari
Alok Tiwari

Reputation: 617

add line in manifiest application section

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

this will remove title bar from your application

Upvotes: 0

user2561294
user2561294

Reputation: 1

Use this in ur java code

requestWindowfeatures(window.Features_NoTitle);

Upvotes: 0

qulfille
qulfille

Reputation: 208

@Override public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    // remove title
    requestWindowFeature(Window.FEATURE_NO_TITLE);

    setContentView(R.layout.main);
}

add this in your onCreate()

Upvotes: 1

Related Questions