A
A
Artem2012-12-04 16:02:21
Android
Artem, 2012-12-04 16:02:21

How to make icons for the menu and action bar?

I need two icons for my application - for emoticons and a user complaint. The application runs on Android 1.6 and higher, that is, the icons should look normal and be combined with the system icons in both the menu and the ActionBar. But there are two problems here:
1. For emoticons, I downloaded the icon from here in AI format. Cropped and saved as PNG. Then I loaded it into Android Asset Studio , but got only gray circles instead of an icon:
32c9305663c6.png
2. To complain about the user, I wanted to use the built-in icon ic_menu_blocked_user. But with it I get the error "Error: Resource is not public. (at 'icon' with value ' android :drawable/ic_menu_blocked_user')".
One gets the impression that if there is at least one third-party icon, then it is better to refuse the built-in ones, since they will not be combined. How is this done right? What do you need to slip Android Asset Studio?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nicolausYes, 2012-12-04
@nicolausYes

1. I used Android Asset Studio many times to prepare icons and never had such problems. Shoved png-shki. If you have such problems - it does not matter, make the indent you need and save the file in the right 4 resolutions, it's a minute of work.
2. Not all android resources are available publicly (i.e. for applications outside the OS). Therefore, copy the desired icon to your drawable folders.
No, you do not need to refuse either built-in or third-party ones. The main thing is that all icons look the same within the same application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question