Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get current background color of TextView java

if (textView.getBackground() instanceof ColorDrawable) {
    ColorDrawable cd = (ColorDrawable) textView.getBackground();
    int colorCode = cd.getColor();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #current #background #color #TextView #java
ADD COMMENT
Topic
Name
1+8 =