Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

spannable string in android java for color

String text2 = text + CepVizyon.getPhoneCode() + "

"
            + getText(R.string.currentversion) + CepVizyon.getLicenseText();

Spannable spannable = new SpannableString(text2);

spannable.setSpan(new ForegroundColorSpan(Color.WHITE), text.length(), (text + CepVizyon.getPhoneCode()).length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);

myTextView.setText(spannable, TextView.BufferType.SPANNABLE);
Comment

PREVIOUS NEXT
Code Example
Java :: No Java executable found in current PATH: /bin:/usr/bin:/sbin:/usr/sbin 
Java :: double.parsedouble in java 
Java :: how to initialize array in java 
Java :: Java print class type 
Java :: java quit application 
Java :: imageview height based on screen size 
Java :: map string string to java object 
Java :: sum of list java 
Java :: java sleep 1 second 
Java :: number of digits java 
Java :: java subscript numbers 
Java :: Simple gui in java 
Java :: arraylist to int array conversion in java 
Java :: java call method from another class example 
Java :: intellij 
Java :: java constructor chaining 
Java :: how to get last element in java 
Java :: how to fill a 2d array in java 
Java :: java string to uuid 
Java :: convert double into integer 
Java :: get device token firebase 
Java :: how to center a window in java 
Java :: como ordenar un arraylist alfabeticamente en java 
Java :: find elements in selenium 
Java :: compare numbers in array in java 
Java :: java exception 
Java :: android java shared preferences remove key 
Java :: Java Sorting Using sort() 
Java :: mouselistener in java 
Java :: java first character string number 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =