Yang
Yang

Reputation: 6892

How to avoid showing the title bar when phonegap app starts on Android?

I have a splash screen for my phonegap app on android. However, everytime before showing the splash screen, a blank screen with a header bar (an icon with the app name) will be shown before the splash screen. How do I make that disappear?

Upvotes: 1

Views: 1047

Answers (2)

Darpan
Darpan

Reputation: 5795

if you could go for fullscreen as well then this may help if you add this in your mainfest -

<application 
    android:icon="@drawable/icon" 
    android:label="@string/app_name" 
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

Upvotes: 1

WU Xudong
WU Xudong

Reputation: 160

Try requestWindowFeature(FEATURE_NO_TITLE) in your activity's onCreate() method

Upvotes: 1

Related Questions