Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

color class android


int color = ContextCompat.getColor(context, R.color.someColor);
        int red = Color.red(color);
        int blue = Color.blue(color);
        int green = Color.green(color);
        int alpha = Color.alpha(color);

Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #color #class #android
ADD COMMENT
Topic
Name
3+5 =