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

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

ImageView setMaxHeight 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
This code example shows how to use the following methods: setBackgroundResource, setLayoutParams, setMinimumHeight, setOnClickListener, setOnTouchListener
91:	btn = new ImageButton(context); 
92:	btn.setMaxHeight(preferedHeight); 
93:	btn.setMinimumHeight(preferedHeight); 
94:	btn.setPadding(0, 0, 0, 0); 
-
96:	btn.setLayoutParams(btnlp); 
-
105:	btn.setBackgroundResource(transparentResourceID); 
106:	btn.setImageBitmap(icon); 
-
129:	btn.setOnClickListener(new OnClickListener() { 
-
158:	btn.setOnTouchListener(new OnTouchListener() { 
Full Snippet Info
5
CodeRank
Related ImageView setMaxHeight Questions & Answers:
setMaxHeight Method Overview
An optional argument to supply a maximum height for this view.
See Also