I am writing an App using MonoDroid and for some reason I cannot pull down the notification bar from the top of the screen. I am thinking this has to do with my layout, but I am not sure. I also notice that when my App is running I do not have the bar at the top showing the battery, time, signal strength, etc.
So, my question is, what do I need to do to allow the user to pull the notification bar down? And how to show the info at the top of the screen?
I suspect you have done something to make your app appear in "Full Screen" mode (this will turn the home, menu and back buttons on the bottom of the screen to dots, and hide the navigation bar.
I believe this is called "lights out mode". Here is one SO question asking how to turn it on (maybe it will help you turn it off as well): Hide ICS back home task switcher buttons
Maybe your theme is
android:theme="#android:style/Theme.NoTitleBar.Fullscreen" ?
It hides the notification bar. Change to a non-fullscreen theme to make the the notification bar visible.
Related
Is it possible to hide navigation bar on e.g. tablets in activity, so it does not appear when user is clicking on the screen?
I want it to appear only when user is swiping from bottom to middle of the screen, just like in e.g. Real Racing 3.
When I use:
myView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
Unfortunetly navigation bar is hidden, but when user is clicking, it appears again. I want it to work only with this swipe gesture. How it can be achieved?
This is a platform behavior. Apps do not have the sort of control of the navigation bar that you are looking for, and for good reason. All it takes is one app not implementing a way to show the nav bar and the user is stuck. You will have to design your app with the platform's behavior in mind.
What I wish to do is what Surelock does, I can already stop the user from acessing the status bar's menu, my problem is I can only do that for my app.
I need help doing it the way surelock does it, for every app launched within my app I need to collapse the status bar menu.
Use the WindowManager to draw a View over the touch area for the notification bar that consumes all the touch events.
Keep in mind that this breaks expected behaviour on Android, and is an anti practice. If the notification bar is visible, it should be expandable. I doubt too many users will appreciate you doing this.
I'm developing an restaurant menu application that I want to be always on (the user shouldn't be able to go outside the application).
So far am able to override the back and home buttons, but I would like to get rid of the notification bar. Is there anyway to do such thing?
I've tried to set the app theme to fullscreen no title bar but that didn't do the trick. (For the home button i used the custom app in the application.xml.)
Here is a picture of the app for better understanding
You cannot remove bottom navigation bar (notification bar is that one on the top of the screen) on non-rooted device.
If you want to make kiosk mode, then you got two choices - turn your app into launcher or root your device and use tools like: http://ppareit.github.com/HideBar/ (there's open source solution as well but I do not have URL handy)
Put this onCreate()
this.requestWindowFeature(Window.FEATURE_NO_TITLE); // Removing the title
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
//notification bar
But you have to put it before the call to setContentView(R.id.x), otherwise it does not work
I should prefer to totaly hide the bottom status bar in android tablet (Androide 3.x and 4.x), but it seems to be impossible, because the new android version removed the physical keybutton from devices. Therefore I would at least remove from the bottom status bar, the clock, battery icon, and others. I only want the "Back", "Home" and "Options" buttons. It's possible?
http://developer.android.com/design/patterns/actionbar.html#considerations-split-action-bars In tablet devices, when set Full screen mode, the BottomBar and notification bar (including clock and other) are merged. I practically want hide the notification bar side.
Therefore I would at least remove from the bottom status bar, the clock, battery icon, and others. I only want the "Back", "Home" and "Options" buttons. It's possible?
If you make your own ROM mod with your own modified build of Android, yes. An SDK application cannot remove items from the system bar.
I am currently planning the honeycomb update for my app and i am wondering how to use the Action Bar correctly. My first question is if it is possible to hide the App-Icon and Title from the Action Bar.
And is there any kind of Design guidline for the Honeycomb-UI yet?
Yes, you can hide the app icon and title. You can also replace the app icon with a wider logo image for your activity.
The app icon/logo at the left is collectively treated as a "home" affordance. You can optionally ask the system to display it as "up." When tapped, this should take the user either to a home/landing page for your app or one level up in the app's navigation hierarchy, respectively.
This complements the system back button by providing a consistent way for the user to move around your app when the history associated with the back button might be complex. (For example, the user might have been deep-linked into your app through a notification or an intent from another application.) By using this pattern your app won't need to hijack the normal behavior of the back button in special cases for convenience.
The action bar does double duty in the form of action modes. The two APIs are orthogonal but the resulting UI occupies the same screen real estate. An action mode presents a set of contextually relevant options to the user as a customized action bar. For example, a user might select several items from a list at a time. The app might present an action mode to let the user take a bulk action on the set of all selected items such as delete or share.
Action modes are a great way to present contextual actions that doesn't stop the user from interacting with the rest of the UI the way that popup menus do.
Design guidelines will hopefully be published "soon." :)