Java Code Examples for android.widget.TextView.equals()

The following are Jave code examples for showing how to use equals() of the android.widget.TextView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Pocket-Plays-for-Twitch   File: StreamFragment.java   View Source Code Vote up 5 votes
/**
 * Resets the background color of all the select quality views in the bottom dialog
 */
private void resetQualityViewBackground(TextView selected) {
	TextView[] textViews = {auto, source, high, medium, low, mobile};
	for (TextView v : textViews) {
		if (v.equals(selected)) {
			v.setBackgroundColor(Service.getColorAttribute(R.attr.navigationDrawerHighlighted, R.color.grey_300, getContext()));
		} else {
			v.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.transparent));
		}
	}
}