Awesome Open Source
Awesome Open Source

Buy Me a Coffee at Get it on Google Play

Icon Handler

This is an Android project. This library handle the drawable customization and position on View, EditText, ImageView, TextView, Button and etc. You can do a lot with a few lines of code, like change the icon color, alpha or even the size. This library has a lot more customization and features than is able to show here. Please check the sample app and feel free to help with a pull request.

Android Arsenal MaterialUp Demo Codacy Badge API


Step #1. Add the JitPack repository to your build file:

allprojects {
    repositories {
	maven { url "" }

Step #2. Add the dependency (See latest release).

dependencies {
       compile 'com.github.jrvansuita:IconHandler:+'


//Setting up a icon on background of a View.
Icon.put(yourView, R.mipmap.your_icon);

//Setting up a icon on the ImageView.
Icon.put(yourImageView, R.mipmap.your_icon);

//Setting up a icon on the left of the TextView. Also can use right(), top() and bottom() methods.
Icon.left(yourTextView, R.mipmap.your_icon);

//Setting up a icon on MenuItem

//Setting up a icon to the ImageView and converting it to blue.;

//Setting up a icon to the ImageView and converting it to your custom color.

//Setting up a bitmap as a icon.

//Setting up a icon on dynamic position

//You can merge the usage with colors transformations.

//Setting up a icon to the ImageView and applying alpha. (0-255)

//Will make the icon appears weak. Receiving focus will reveals the real color of icon.
Icon.focusable(yourEditText, R.mipmap.your_icon, Gravity.RIGHT);

//Just another edit text to lose the focus of the first.

yourImageButton.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
         //Clearing all icons of the View.

Instagram Github Google Play Store E-mail

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Java (391,896
Icons (15,053
Position (8,528
Focus (2,963
Color Palette (714
Tint (472
Iconset (437
Icon Font (404
Icon Pack (383
Icon Theme (262