why not add to the manifest the theme of the first activity to exclude the action bar, and maybe even the notification bar?
something like:
<application
android:allowBackup="true"
android:icon="@drawable/lojacidadao"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name="com.example.basicmaponline.Intro"
android:screenOrientation="portrait"
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>
...
This should work if you extend the normal Activity
class.
If your Activity extends AppCompatActivity
instead, use this theme for example:
<style name="AppTheme.Splash" parent="@style/Theme.AppCompat.NoActionBar">
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
meaning :
<activity ...
android:theme="@style/AppTheme.Splash" >
...
BTW, the reason you have the action bar is because you have set the default theme to have it, in the application tag, so it's not an activity before yours, it's really your own splash activity.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…