Code example for ImageView

Methods: setVisibility, setBackgroundColor

0
		return pos;
	} 
 
	void updateBG(final int color) {
		if (shade != null) {
			shade.setBackgroundColor(color);
			shade.setVisibility((color & 0xff000000) == 0 ? View.GONE
					: View.VISIBLE);
		} 
	} 
 
	void updateTheme(final int theme, final WidgetPrefs widgetPrefs) {
		int color;
		int alpha = widgetPrefs.getInt(KEY_SHADE_COLOR, DEFAULT_SHADE);
		// Isolate alpha channel 
		alpha = 0xff000000 & alpha;
		switch (theme) {
		case THEME_LIGHT:
			// WHITE 
			color = 0xffffff;
			break;