Action bar icon showing solid gray square in android - android

This type of square is showing

You need to design a specific icon for the Action Bar, with solid color and transparency. You can create your notifications icons with this. https://romannurik.github.io/AndroidAssetStudio/icons-notification.html#source.space.trim=1&source.space.pad=0&name=ic_stat_example

Related

Why custom icons add on the toolbar becomes distort?

I want to use my own made custom icons such as a brand logo and a brand text to my action bar used as toolbar but the problem is that my logo image and brand text image becomes distort when i add these on action bar even i have created separate files such as "mdpi" etc.I tried to create icons with image asset studio but icons becomes so smaller and resizing them effect their visual quality
Here is the image of action bar
Now i am in the trouble suggest me better solution to add icons in a perfect way to my action bar which is used as toolbar.
Visit https://romannurik.github.io/AndroidAssetStudio/icons-generic.html#source.type=clipart&source.clipart=ac_unit&source.space.trim=1&source.space.pad=0&size=32&padding=8&color=rgba(0%2C%200%2C%200%2C%200.54)&name=ic_ac_unit
Create a Generic icon of 32dp or 48dp with Asset Padding 0dp.
Check the image of my action bar.

How to change shape of bottom-appbar and floating action button

How can I change the shape of the android material design bottom app bar and the corresponding floating action button?
I want the floating action button to be insetted into the app bar. This is possible using the material bottom app bar. But I want the floating action button to be a rectangle instead of beeing a circle. Material design shows an example of this on their website but just as an image without explanation how to do this.
EDIT: I want to change shape not just color

Android action bar showing icons in both light and dark themes

I want to show an action bar with icons in both light and dark themes. So I'm wondering whether I need to duplicate all the icon files?
I also wonder why the official icons are either opaque white or black, but the guidelines say its alpha should be 80% and 60% for each theme respectively. Should I change every png?
In other words, is there any simple way to use an action bar with icons that work in both themes?

Notification icon on status bar is coming as white box

How do i customize the notification icon on the status bar in my phone running Android 5.0. It always comes as a white box(image attached).
The notification icon in the notification bar comes colorful as expected but the status bar icon comes as white square box.l
android 5.0 uses the icon that you give him and puts a color filter on it. If you want to see your icon, you must use an icon with transparency (png). I advice you to set another icon other than the icon of your application and remove the rectangle with rounded border.
There is some restrictions for notification icons. And also Lollipop doesn't show exactly what you set. It flatifies the notification icons and also suggest you to use flat style icons.

Light-colored icon on ActionBar not visible on system menu?

I am using the ActionBarCompat sample. If our action bar has a dark background, we want to use white-colored icons. But these icons are also used for the system menu items (when they don't fit on the action bar, pre-honeycomb). So the white icons aren't visible on the system menu white background. Example:
What can we do about this? Is there a way to use the dark version of icons when shown on the system menu, and light colored when on the action bar?
Thanks
There are only two ways to handle this issue. Either change the color of your ActionBar, or edit the color of your icons.
I would suggest that best combination for Actionbar and icons would be Red color for Actionbar and white color for your icons.
And how can white icons be visible in white background??? If you remember in Menu icons we have grey background with white icons. That's why they are easily visible in Menu's.

Categories

Resources