How to get colored status bar icon? - android

In this screenshot, the app is showing colored status bar icon. Whenever I try to do so, my icons turn into mono color icons. I cant find any documentation regarding this. Can anyone please explain?

Related

Change color of navigation gesture bar and icon in Android programmatically

I want to change the change navigation gesture bar and icon colour to white how should I do that. I tried to change the theme of the app to dark theme but it's not working. Below are the screenshots which I have achieved so far.
If anyone knows how to implement this please help.
Thanks in advance.

Notification icon showing up in status bar but not in notification itself

As you can see, the mipmap icon is showing in the status bar but not in the notification itself. This is how I've set it:
Notification notification = new NotificationCompat.Builder(this).
setSmallIcon(R.mipmap.ic_launcher). // This is the small icon
// more code
build();
Current test device is using Android 7.1.1
Can anyone help or explain why this is happening, or give some advice on how to fix it? Thanks
This is because Android requires a white icon in the notification bar. So change it to a white icon.
https://developer.android.com/guide/topics/ui/notifiers/notifications.html
What Android basically does, is painting your wall grey. Actually your wall is showing, but with a grey overlay.
According to your question below, you can load your drawable and paint it to white like this:
yourWallIcon.setColorFilter(Color.WHITE)
Note that yourWallIcon must be a drawable.

How to disable shadow action bar (android 5.0)?

I am currently building an app that uses the material design theme as a base theme.
However the action bar has a dark shadow below the action bar.
I have tried everything I can think of, but I can't seem to get rid of it.
Here is a screen shot showing what I mean:
https://docs.google.com/file/d/0B_krkpxyd558V0p6a1NKZXFHeHc/edit?usp=docslist_api
If someone could tell me how I can get rid of it, I would much appreciate it.
Thanks
Corey :)
Shadow is created by using elevation, here's how you can disable it programmatically:
getActionBar().setElevation(0);

How should I show default silent notification in status bar?

Sorry if it seems childish but I searched everywhere and I couldn't find any answer to this,
I need to show the crossed-melody ,which is shown when you use silent mode in android phones on status-bar.
Anyone can help me?
You cannot simply show a icon on the status bar!
You have to create a Notification in the Notification bar
Which will show you a Icon of your app or you can set your custom icon which will show up on the Status Bar
example
http://www.javacodegeeks.com/2013/08/android-notification-with-sound-and-icon-tutorial.html

How to make application overlapping with status bar which already has transparent background in Android

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.

Categories

Resources