Is it possible to 'style' icons in Android? - android

For example, I downloaded an icon from Google which is simply a check mark. I put this icon in my app's action bar but unfortunately the icon is black and my action bar is quite dark so it doesn't look good. Is there a way to style the icon automatically or do I have to edit the png to be white instead? I found this website which mentions styling an icon but I'm not sure if that's a guideline for a designer or actually something that goes into code.
What is the standard way to style icons? Do I need to download black and white icons and use the appropriate one at runtime based on the app theme? That seems like it could be a pain.

For myself, if I need to style an icon, I use photoshop to edit the icon. But any image processing software should work if you are familiar with it.
However, the icons you mentioned that are available online usually come with both a dark and light theme. So if you have a dark action bar theme, you can simply download and use the light version of the icon.
For your checkmark icon specifically, you can download either the light or dark version of it here, here, or here. Hope this helps.

look at this web site http://bitdroid.de/Android-Material-Icon-Generator/
for any question or how it work: http://forum.xda-developers.com/tools/programming/tool-android-material-icon-generator-t3333159

Related

Customize overview bar color in Android app developed with Cordova

I've developed an app using Cordova/Phonegap and web technologies, and want to personalize it a little bit, but I'm having trouble finding how.
In android, when users press the Overview button (the squared one), they can see an overview with cards for each of the open apps, these cards have a top bar with an icon and the name of the app. As shown in this screenshot:
By default the bar color is gray, but I would want it to be a different color that matches better the colors in my app. This is something that can be seen in other apps, that have different colors for that bar (e.g.: Chrome bar is blue, Email bar is orange, etc):
I tried using the theme-color meta value, but that didn't do anything. I also tried the status-bar plugin, this one changed the status bar when the app is open, but still shows the default gray bar in the overview card mode.
Is it possible to customize this overview bar color with Cordova/Phonegap? How would it be done?
Install:
cordova plugin add cordova-plugin-headercolor
Usage:
-.cs
window.plugins.headerColor.tint("#becb29");
OR
-config.xml
<preference name="HeaderColor" value="#becb29" />
Here is doc.
This answer pretty much sums it up:
https://stackoverflow.com/a/29291928/6709110
The method you are looking for is
setTaskDescription(new ActivityManager.TaskDescription(label, icon, color));
Here is the link to the documentation:
https://developer.android.com/reference/android/app/Activity.html#setTaskDescription(android.app.ActivityManager.TaskDescription)

What is the name of the Android icon?

Is it the standard icon? What is it called? (android.R.drawable.???)
I am referring to the update or refresh icon.
Icon (on the left)
You can get this icon, like #panini said, in the Android Design Downloads page.
There are two versions, the Holo Light and Holo Dark, and it is the Holo Dark one that is shown in your link. An example of the image is shown in the same page under "Action Bar Icon Pack".

Changing the menu icon-color/icon in Android Easy Share Action

I am trying to implement Easy Share Action for my Android application as describe in here. I was able to complete it successfully. But I need to change the Sharing Menu Item icon color or even icon. According to the given document we don't provide any icon in drawable folders.
You can download the Action Bar Icon Pack from here, locate the sharing icon you want whether holo light or dark.
For instance if you use holo light, the share icon is located in \Action Bar Icons\holo_light\01_core_share.
Should be easy to change the color of the drawables and copy to /res folder of your project.

How could I change the font and background color in the action bar sherlock?

I want to be able to change the action bars font and the background color. How could I go about doing this? I've searched everywhere for this and none of the options seem to work for me.
Have you taken a look at the very Sherlock website about Theming?
Theming of the action bar to work on all devices is a very
straightforward and simple process. You should follow the existing
theming recommendations for customizing the native action bar with
some minor tweaks.
And to help you with the problem, you can also use the web tool called actionbarstylegenerator.
The Android Action Bar Style Generator allows you to easily create a
simple, attractive and seamless custom action bar style for your
Android application. It will generate all necessary nine patch assets
plus associated XML drawables and styles which you can copy straight
into your project.

Custom Actionbar icon compatible with other themes the user may choose

When creating custom ActionBar icons what happens if the user changes their theme to something that makes your icon unreadable? Do they have this kind of power?
Example: So say I make an icon for my ActionBar in Holo Dark, so that the icon will be a lighter shade of white. What if the user changes their theme to Holo Light (or can they in my app?), forcing my icon to not be readable because it is also close to the same color as its background? I'm just concerned that if I create a custom app it will not look proper to only certain people.
I have been trying to find something about this but my searches and Google's Iconography pages didn't really give me a clear answer.
Android allows setting a themes to application/activity in AndroidManifest.xml, and you can change theme theme dynamically. If a user change their system themes, it don't affect you application. If you want to change your application/activity themes, you should call setTheme() before setContentView() in Activity.onCreate()

Categories

Resources