Skip to content

Android color opacity transformation by Java, just a little for fun.

Notifications You must be signed in to change notification settings

keylorsdu/ColorOpacity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColorOpacity

Android color opacity transformation by Java, just a little for fun. Android uses Hex ARGB values, which are formatted as #AARRGGBB. That first pair of letters, the AA, represent the Alpha Channel. You must convert your decimal opacity values to a Hexdecimal value. This program determine your AA to percent. Simple , we all can rewrite it , are you interesting to make your part of implemention?

http://stackoverflow.com/questions/5445085/understanding-colors-in-android-6-characters/11019879#11019879

int Color.argb (int alpha, int red, int green, int blue)

alpha Alpha component [0..255] of the color red Red component [0..255] of the color green Green component [0..255] of the color blue Blue component [0..255] of the color

About

Android color opacity transformation by Java, just a little for fun.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages