Best code examples for ImageView setAlpha method (android.widget.ImageView.setAlpha)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ImageView setAlpha method.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

ImageView setAlpha examples from Open Source projects
This code example shows how to use the following methods: setAlpha
830:	background.setAlpha(30); 
-
832:	ImageProvider.getInstance(context).loadImage(background, posterPath, false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAlpha
102:	img.setAlpha((int)(currentValue * 2.55f)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAlpha
184:	imageView.setAlpha((int) (2.55 * progress)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAlpha, setClickable
313:	mPlayButton.setClickable(true); 
314:	mPlayButton.setAlpha(255); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAlpha, setEnabled
195:	v.setEnabled(enable); 
196:	v.setAlpha(enable? 255 : 128); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAlpha
43:	imageButton.setAlpha(255); 
-
46:	imageButton.setAlpha(192); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAlpha
77:	imageButton.setAlpha(255); 
-
80:	imageButton.setAlpha(64); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setAlpha, setEnabled
156:	arrow.setEnabled(enabled); 
157:	arrow.setAlpha(enabled ? ARROW_ALPHA_ENABLED : ARROW_ALPHA_DISABLED); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setAlpha, setEnabled
112:	prevPost.setEnabled(enabled); 
-
114:	prevPost.setAlpha(navButtonEnabled); 
-
116:	prevPost.setAlpha(navButtonDisabled); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setAlpha, setEnabled
156:	button.setEnabled(enabled); 
157:	button.setAlpha(enabled ? ENABLED_ALPHA : DISABLED_ALPHA); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAlpha
101:	img.setAlpha((int)(currentValue * 2.55f)); 
Full Snippet Info
4
CodeRank
Related ImageView setAlpha Questions & Answers:
Displays an arbitrary image, such as an icon. The ImageView class can load images from various sources (such as resources or content providers), takes care of computing its measurement from the image so that it can be used in any layout manager, and pr...
setAlpha Method Overview
This method was deprecated in API level 16. use #setImageAlpha(int) instead
See Also
  • getDrawable
    Return the view's drawable, or null if no drawable has been assigned.
  • setAdjustViewBounds
    Set this to true if you want the ImageView to adjust its bounds to preserve the aspect ratio of its drawable.
  • setImageURI
    Sets the content of this ImageView to the specified Uri.
  • setMaxHeight
    An optional argument to supply a maximum height for this view.
  • setMaxWidth
    An optional argument to supply a maximum width for this view.
  • setScaleType
    Controls how the image should be resized or moved to match the size of this ImageView.