TextView.SetMinHeight(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the height of the TextView to be at least minPixels
tall.
[Android.Runtime.Register("setMinHeight", "(I)V", "GetSetMinHeight_IHandler")]
public virtual void SetMinHeight (int minPixels);
[<Android.Runtime.Register("setMinHeight", "(I)V", "GetSetMinHeight_IHandler")>]
abstract member SetMinHeight : int -> unit
override this.SetMinHeight : int -> unit
Parameters
- minPixels
- Int32
the minimum height of TextView in terms of pixels
- Attributes
Remarks
Sets the height of the TextView to be at least minPixels
tall.
This value is used for height calculation if LayoutParams does not force TextView to have an exact height. Setting this value overrides previous minimum height configurations such as #setMinLines(int)
or #setLines(int)
.
The value given here is different than #setMinimumHeight(int)
. Between minHeight
and the value set in #setMinimumHeight(int)
, the greater one is used to decide the final height.
Java documentation for android.widget.TextView.setMinHeight(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.