Sorry for the simple question but I cant figure out whats going on with this. The theme of my layout is set to NoTitleBar and the gui shows that slim bar where you pull notifications down from but when I run my app on my galaxy nexus its not there. It just shows white space where that bar is supposed to be. How do I make this bar with battery life and such show up. thanks
check your activity declared in mainfest file ..put your theme as no title bar in your activity in manifest file..if problem is not solve then put your code for better understanding
Related
I want to hide title bar in Service without using Activity.Can I somehow do so?I thought it might work with requestWindowFeature and NO_TITLE_FEATURE but android studio says that it can't resolve this method.May be somebody can help me?
No, the title bar is part of the Activity. Therefore the Activity must control what window features it uses or doesn't use.
I have put two icons from Android Icon Packager for action bar. The Info Action appears brightly while the next one, Refresh Action is not appearing. I use both as holo_dark. I tried switching just the refresh action, and it appears very very dimly.
I've try reading many many stuffs I seem to find nothing about this topic.
EDIT: I have solved this problem by deleting the whole refresh icon and then remove the line
android:icon="#drawable/ic_action_refresh"
in the XML. I then re-added the icon and it works like a charm. Voted both answer for caring about my question
Use Icon from your Android Package Opposite to Your Theme.
For eg: If you are using Holo_Dark Theme in your Application use Holo_White Icon Set for it.
In my android app, which is just a webview displaying a responsive web site, I want to remove the title bar so I add this to the application section of the manifest XML.
android:theme="#android:style/Theme.NoTitleBar"
The problem is, I get two totally different ProgressDialog UI treatments. The one with the title bar is much nicer so I would like to keep it, but I don't want a title bar.
I believe this relates to the theme. I want to keep the theme, just not the title bar... at least I think. How do I keep the nicer styling, and hide the title bar instantly (not programmatically once the activity starts, that shows the title bar briefly)?
The problem is that Theme.NoTitleBar comes from pre-Honeycomb era, so it shows a pre-Honeycomb dialog.
If your app is API 11 or up you can simply switch by the Holo version of it (I honestly don't remember the name).
Or to support both older and newer device you'll have to use this type of approach Different Theme for different Android SDK versions to apply Theme.NoTitleBar to old devices and its holo counterpart for newer devices.
happy coding.
I have seen a few activities out there (and especially Home replacements) that actually have transparent/translucent status bar (and by that I really mean the status bar and not the title bar) and was wondering how they were doing it.
I've looked everywhere (Google, StackOverflow, etc) and haven't found a straight answer to this question, tried a lot of things myself but in vain... Now running out of options and the only one I have left is to set the activity FULLSCREEN and have a replacement for it (there are a few projects out there that offer replacements for the status bar, but I'd rather not go that far for such a simple task really).
Thanks.
EDIT:
I've found my answer after studying how others "did it"... They actually didn't.
My guess goes a little further than that since I think that my status bar IS actually transparent just like those applications, but the real difference is that they are using the 2D/live wallpapers rendered by Android as background which is rendered behind the status bar.
So the reason why I'm thinking I don't have a transparent status bar is because in my case only black is being rendered behind it...
I don't have a phone here with a opaque status bar but I'm pretty sure those apps will also have an opaque status bar (and not transparent).
You have looked every where except android developers official website.You can customize ur status(notification) bar.Here
is the link where u can get the custom notification bar tutorial.
I'm now customizing theme through some framework files. The problem is that I've made the status bar with transparent background. But there's an obvious side line between status bar and the application. How can I merge them together? Looks like the application align to the top of the screen but the status bar also exist.
Thanks in advance.
Please find WindowManager.LayoutParams.TYPE_STATUS_BAR in StatusBarService.java and replace it with WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY.
I think it is what you want.