This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Hiding Title in a Fullscreen mode?
I am making a app that need to be in full screen. i want the notification bar to show, but not a titlebar or icon (my build target is 4.0.3). I have tried to put it in full screen but it stays the same.
Is there any alternative to get full screen app layout / view?
Any help would be greatly appreciated!
i want to hide the hello android text and icon
here is a example:
In the Manifest file, under each activity tab you want to be without a title bar, place:
android:theme="#android:style/Theme.NoTitleBar"
If you wanted no notification bar as well, then use:
android:theme="#android:style/Theme.NoTitleBar.Fullscreen" >
Related
This question already has answers here:
Lollipop : draw behind statusBar with its color set to transparent
(16 answers)
Closed 5 years ago.
If you go into the Google Play store, and open the details page for an app, the banner image is visible even up to behind the status bar. How do I implement the same effect in my app (an image going up into the status bar)?
I have tried the following layout XML code in my app, but it doesn't make the status bar completely transparent:
<item name="android:windowTranslucentStatus">true</item>
This question I think is essentially the same as this one: Lollipop : draw behind statusBar with its color set to transparent and there are some good answers there.
This question already has an answer here:
How to make bottom navigation show menu items with icon and text except center item menu show only icon? [closed]
(1 answer)
Closed 5 years ago.
So I seen the new PlayStaion app for android and I was wondring if I can find a library to implement a bottom navigation like it if any one know a library like this please comment.
here is a screenshot of PlayStaion Android App
Use Bottom Navigation Activity.
Android Studio 2.3 is provided itself Bottom Navigation
This question already has answers here:
How to set ActionBar logo to Text (TextView)?
(2 answers)
Closed 9 years ago.
I have an app and I have managed to add an image for the home button in the action bar.
I did this using the actionbar.setIcon() method.
The image is essentially a blank button image. I want to be able to add the text "exit" on top of the image. Is there a way to do something like this ?
so far i know no. But you can make an image button direct with your text "exit"
I did a workaround.
I made the home button hidden using :
Actionbar.setDisplayShowHomeEnabled(false);
and then added a button to the action bar, with the image
and the text on the button.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Creating a sliding drawer with menu items
As shown in the screen shot attached i need to show a menu in my application. How it is possible ?
I guess you are using action bar sherlock library,If so, first enable homebutton which is on left side of an actionbar
mActionbar.setHomeButtonEnabled(true);
Then, Set Icon for that button
mActionbar.setIcon(R.drawable.image_name);
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to hide status bar in Android
How can I remove this statusbar in android 3.1.
Thanks.
You can't. That's not the status bar, that's the new system bar, and you can't remove it because unlike the status bar it has key navigation affordances (back and home keys).
The only things you can do with it are as described for View.setSystemUiVisibility(). Note that on tablets you can not assume SYSTEM_UI_FLAG_HIDE_NAVIGATION will be respected; this is mainly intended for display video, so if the screen's aspect ratio allows a wide screen video to be shown without removing the navigation, then it will not be removed.
This code will remove the notification bar and title bar programmatically (tested using Android 2.3.3).
Unfortunatly this code does not work for Android 3.0 and above.
//Remove notification bar
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
//Remove title bar
this.requestWindowFeature(Window.FEATURE_NO_TITLE);