Code example for ImageView

Methods: setAlpha

	 * @param progress 
	 *            the progress 
	private void setOpacity(int progress) {
		imageView.setAlpha((int) (2.55 * progress));
	 * Switches the opacity state of the image. This forces the 
	 * SquareProgressBar to redraw with the current progress. As bigger the 
	 * progress is, then more of the image comes to view. If the progress is 0, 
	 * then you can't see the image at all. If the progress is 100, the image is 
	 * shown full. 
	 * @param opacity 
	 *            true if opacity should be enabled. 
	public void setOpacity(boolean opacity) {
		this.opacity = opacity;
Stop searching for code, let great code find you!  Add Codota to your java IDE