次の方法で共有


TextView.SetLineSpacing(Single, Single) Method

Definition

Sets line spacing for this TextView.

[Android.Runtime.Register("setLineSpacing", "(FF)V", "GetSetLineSpacing_FFHandler")]
public virtual void SetLineSpacing (float add, float mult);
[<Android.Runtime.Register("setLineSpacing", "(FF)V", "GetSetLineSpacing_FFHandler")>]
abstract member SetLineSpacing : single * single -> unit
override this.SetLineSpacing : single * single -> unit

Parameters

add
Single

The value in pixels that should be added to each line other than the last line. This will be applied after the multiplier

mult
Single

The value by which each line height other than the last line will be multiplied by

Attributes

Remarks

Sets line spacing for this TextView. Each line other than the last line will have its height multiplied by mult and have add added to it.

Java documentation for android.widget.TextView.setLineSpacing(float, float).

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.

Applies to