ImageView setColorFilter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ImageView setColorFilter method.

This code example shows how to use the following methods: setColorFilter, setImageResource
		textView.setTextSize(14.0f);
		 
		textView.setText(inode.getDisplayName());
		textView.setGravity(Gravity.CENTER);
		 
		ImageView icon = new ImageView(context);
		icon.setImageResource(inode.getImageResource());
		if (inode.isDisabled()) {
			textView.setTextColor(Color.GRAY);
			icon.setColorFilter(0xff888888, Mode.SRC_ATOP); //argb
		} else { 
			textView.setTextColor(Color.WHITE);
			icon.setColorFilter(0xffffffff, Mode.SRC_ATOP); //argb
		} 
		setBackgroundColor(Color.BLACK);
		 
		addView(icon);
		addView(textView);
	} 
 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: setColorFilter
		TiUIHelper.firePostLayoutEvent(viewProxy);
	} 
 
	public void setColorFilter(ColorFilter filter)
	{ 
		imageView.setColorFilter(filter);
	} 
 
	private void updateScaleType() 
	{ 
		if (orientation > 0 || enableZoomControls) {
			imageView.setScaleType(ScaleType.MATRIX);
			imageView.setAdjustViewBounds(false);
		} else { 
			if (viewWidthDefined && viewHeightDefined) {
				imageView.setAdjustViewBounds(false);
				imageView.setScaleType(ScaleType.FIT_XY);
			} else if (!enableScale) {
				imageView.setAdjustViewBounds(false);
				imageView.setScaleType(ScaleType.CENTER);
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: getLayoutParams, setLayoutParams, setOnTouchListener, setColorFilter, setVisibility
		setBoundaryPointParameters(endPointImageButton, leftMargin);
	} 
 
	private void setBoundaryPointParameters(ImageButton boundaryPoint, int leftMargin) {
		int pixelPerSecond = SoundMixer.getInstance().getPixelPerSecond();
		RelativeLayout.LayoutParams layout = (LayoutParams) boundaryPoint.getLayoutParams();
		layout.height = getHeight();
		layout.width = pixelPerSecond;
		layout.setMargins(leftMargin, 0, 0, 0);
		boundaryPoint.setColorFilter(Color.BLACK);
		boundaryPoint.setVisibility(VISIBLE);
		boundaryPoint.setLayoutParams(layout);
		boundaryPoint.setOnTouchListener(onTimelineTouchListener);
	} 
 
	public void resetTimeline() { 
		Iterator<Entry<Integer, TimelineTrackPosition>> it = trackPositions.entrySet().iterator();
 
		while (it.hasNext()) {
			HashMap.Entry<Integer, TimelineTrackPosition> pairs = it.next();
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: setColorFilter
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: setColorFilter
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE

Related ImageView setColorFilter Questions & Answers:

setColorFilter Method Overview
Set a tinting option for the image.
See Code Examples for other Android ImageView Methods: