Hiding Actionbar Left Blank Space On Top
Solution 1:
You should structure your activity so that it overlays the actionbar: here is an example of a theme you might use for it:
<resources><!-- the theme applied to the application or activity --><stylename="CustomActionBarTheme"parent="@android:style/Theme.Holo"><itemname="android:windowActionBarOverlay">true</item></style></resources>
More info about overlaying the Actionbar. also if you aren't planning to always hide the Actionbar, you might need to structure your layouts to account for it while it is visible. Please refer to this question on how to do that. You might also consider refactoring your fragment to be a separate activity and just starting it in the full screen mode right away, by using the "NoTitlebarTheme" with that activity.
Solution 2:
Solution 3:
In your activity on create method put the following line of code
requestWindowFeature(Window.FEATURE_NO_TITLE);
Solution 4:
using this line only in that activity android:theme="@android:style/Theme.Black.NoTitleBar"
in manifest file
add the getActionBar().hide();
in activity class where your fragments called and use some other fragments in getActionBar().show();
.
Post a Comment for "Hiding Actionbar Left Blank Space On Top"