This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ColorUtils.setAlphaComponent(Color.RED,80) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The function searchPlaces can be called continuously, no matter how many times it got invoked | |
* the Handler will remove all the last sequence request, and execute the last one. | |
* */ | |
String fieldValue = ""; | |
final private Handler handler = new Handler(); | |
final private Runnable runnable = new Runnable() { | |
@Override | |
public void run() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -r --color=always -I "WORD" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String text = "R$ 2.086,01" | |
String pathern = ","; | |
int start = text.lastIndexOf(pathern); | |
int end = ((text.length()) - start); | |
final SpannableString span = new SpannableString(text); | |
span.setSpan(new RelativeSizeSpan(0.5f), start, (start + end), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); | |
someTextView.setText(span); |