All Projects → mathiazhagan01 → Drawablecolorchange

mathiazhagan01 / Drawablecolorchange

Licence: apache-2.0
Android Library to dynamically change color of drawable.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Drawablecolorchange

ProminentColor
Android Library to get average/prominent color of bitmap/drawable
Stars: ✭ 23 (-77.23%)
Mutual labels:  color, bitmap, jitpack, drawable
dynamic-utils
Utility functions to perform dynamic operations on Android.
Stars: ✭ 86 (-14.85%)
Mutual labels:  color, bitmap, drawable
Colorls
A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. 🎉
Stars: ✭ 3,896 (+3757.43%)
Mutual labels:  icons, color
Robust
Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Stars: ✭ 4,125 (+3984.16%)
Mutual labels:  gradle, dynamic
Youtube Play Icon
Material style morphing play-pause drawable for Android
Stars: ✭ 57 (-43.56%)
Mutual labels:  icons, drawable
tasarimcilar-ve-yazilimcilar-icin-kaynak-arsivim
Tasarım ve yazılım ile ilgili 2017 yılından günümüze kadar geçen zamanda toplamış olduğum arşivimi sizle ile paylaşıyorum. Ne mi var her şey...
Stars: ✭ 276 (+173.27%)
Mutual labels:  color, icons
TakingImageOfAView
An example on how to take screenshot of a particular view
Stars: ✭ 15 (-85.15%)
Mutual labels:  bitmap, drawable
Lsd
The next gen ls command
Stars: ✭ 6,655 (+6489.11%)
Mutual labels:  icons, color
Extract-Color-Palette-Api
Create gradient drawable by extracting prominent colors from image⚫⚪
Stars: ✭ 16 (-84.16%)
Mutual labels:  color, drawable
Materialstyleddialogs
A library that shows a beautiful and customizable Material-based dialog with header. API 14+ required.
Stars: ✭ 1,139 (+1027.72%)
Mutual labels:  gradle, icons
Dctb Links
My Personal Links
Stars: ✭ 65 (-35.64%)
Mutual labels:  icons, color
Ariana
Provide Multiple Gradients in ImageViews and Texts. Integrate with ViewPager to change colors dynamically.
Stars: ✭ 74 (-26.73%)
Mutual labels:  imageview, drawable
PowerColorLS
PowerShell script to display a colorized directory and file listing with icons
Stars: ✭ 35 (-65.35%)
Mutual labels:  color, icons
StuyLib
Award-Winning FRC Library by StuyPulse Team 694
Stars: ✭ 17 (-83.17%)
Mutual labels:  gradle, jitpack
Circularimageview
This project allowing you to create circular and rounded corner Imageview in android through simplest way.
Stars: ✭ 90 (-10.89%)
Mutual labels:  bitmap, imageview
Gaussianblur
An easy and fast library to apply gaussian blur filter on any images. 🎩
Stars: ✭ 473 (+368.32%)
Mutual labels:  bitmap, drawable
Jitpack.io
Documentation and issues of https://jitpack.io
Stars: ✭ 2,156 (+2034.65%)
Mutual labels:  gradle, jitpack
ViewColorGenerator
A library to generate color palette for view, imageview and image from URL.
Stars: ✭ 29 (-71.29%)
Mutual labels:  color, drawable
Iconhandler
Tint you Icons, change the size, apply alpha color and set a position easily. 👓
Stars: ✭ 59 (-41.58%)
Mutual labels:  icons, color
Androidanimationexercise
Android 动画各种实现,包括帧动画、补间动画和属性动画的总结分享
Stars: ✭ 1,254 (+1141.58%)
Mutual labels:  gradle, bitmap

DrawableColorChange

Android Library to dynamically change color of drawable.

Android Arsenal Codix

If you like the library, please rate us on codix.io!

Gradle

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

    	allprojects {
		repositories {
			...
			maven { url "https://jitpack.io" }
		  }
	}

Step 2. Add the dependency

    	dependencies {
	        compile 'com.github.mathiazhagan01:DrawableColorChange:1.4'
	}

Maven

Step 1. Add the JitPack repository to your build file

    	<repositories>
		  <repository>
		      <id>jitpack.io</id>
		      <url>https://jitpack.io</url>
		  </repository>
	</repositories>

Step 2. Add the dependency

	  <dependency>
	      <groupId>com.github.mathiazhagan01</groupId>
	      <artifactId>DrawableColorChange</artifactId>
	      <version>1.4</version>
	  </dependency>

Before changing color

Screenshot

After changing color

Screenshot

Example 1

  	DrawableColorChange drawableColorChange = new DrawableColorChange(this);	
  
  	drawableColorChange.setDrawable(R.drawable.icon);
  	drawableColorChange.setColorResId(R.color.colorAccent);
  	Drawable drawable = drawableColorChange.getColorChangedDrawable();
  	ImageView imageView = (ImageView) findViewById(R.id.image);
  	imageView.setImageDrawable(drawable);

Example 2

  	imageView.setImageDrawable(drawableColorChange.changeColorById(R.drawable.icon, R.color.colorAccent));

Example 3

  	drawableColorChange.setDrawable(R.drawable.icon);
	drawableColorChange.setColorResId(R.color.colorAccent);
	Bitmap bitmap = drawableColorChange.getColorChangedBitmap();
	imageView.setImageBitmap(bitmap);

LICENSE

DrawableColorChange library for Android
Copyright (c) 2017 Mathiazhagan Dinesh (http://github.com/mathiazhagan01).

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].