I want to create dynamically changing/animating icons which will show up in statusbar and notifications in android.
Below are some examples that can clarify what I want :
In above example 2nd icon in left side of status bar changes with time ! I want to add similar functionality in my app but I am not able to figure out how to do that.
Also please tell me what should be the dimensions of the image icon that I should make ?
Related
Is there any possible way to center align the action item icons that are shown in action bar of titanium app for android. I have searched a lot of places for this solution but had no luck. I want the action bar to look like the below image. Also tell me the way to not show app title in the action bar.
This is not a Titanium issue.
As you can read in Google's documentation, you won't be able to center anything in the ActionBar. Default (and expected) behaviour is to align action icons on the right (or left if reversed).
I don't recommend it, as it goes against Google's guidelines, but you will be able to center icons if you create a fake ActionBar:
- Remove native ActionBar from any window in your app
- Create a Titanium View that mimics the ActionBar
- Add icons and bind click events.
That's it, you are done.
I would like to add one of the menu icons of the action bar as below.
I need an icon and a bubble on top of that and I need to display a number on that at run time.
Is it possible to do? I have Googled regarding this, but couldn't find exact way to do.
Thanks in advance.
what you want is call "badge"
A simple way to "badge" any given Android view at runtime without having to cater for it in layout.
try this Lib
https://github.com/jgilfelt/android-viewbadger
You will have to define custom layout for your action bar as mentioned in the tutorial here
and to display counter above the Imageview android notification class can be used.
How do I put an icon into the android status bar? I don't want any notifications to be associated with it. Just the icon and nothing more.
Thanks
The only way to put an icon in the status bar is to start a notification.
Don't know how to add them but read this on designing them.
Also, http://www.youtube.com/watch?v=e74z0_Z5QWI
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.
The iPhone gives the app the ability to change the notification bar's color so you can have it match your app's design without having to hide it completely.
Is there a way to change the notification bar color in Android?
I'm looking to have it force black with white text to be less visually present while using the app, but still there.
I don't want to hide it.
No, there is no way to change the look of the notification bar from your app. Your only option would be to make your app full screen, but there are several reasons not to do this.