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

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

ImageView setMaxWidth examples from Open Source projects
This code example shows how to use the following methods: setLayoutParams, setPadding, setImageDrawable, setMaxHeight, setMaxWidth
26:	mIcon = new ImageView(context); 
27:	mIcon.setPadding(5, 10, 20, 10); // 5px to the right 
28:	mIcon.setScaleType(ImageView.ScaleType.FIT_CENTER); 
29:	mIcon.setLayoutParams(new LayoutParams(90, 90)); 
-
31:	mIcon.setMaxHeight(72); 
32:	mIcon.setMaxWidth(72); 
33:	mIcon.setImageDrawable(iconifiedTextSelected.getIcon()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setAdjustViewBounds, setMaxHeight, setMaxWidth
25:	display.setAdjustViewBounds(true); 
26:	display.setMaxHeight(320); 
27:	display.setMaxWidth(480); 
Full Snippet Info
6
CodeRank
Related ImageView setMaxWidth Questions & Answers:
setMaxWidth Method Overview
An optional argument to supply a maximum width for this view.
See Also