共用方式為


ListView.Divider Property

Definition

Returns the drawable that will be drawn between each item in the list. -or- Sets the drawable that will be drawn between each item in the list.

public virtual Android.Graphics.Drawables.Drawable? Divider { [Android.Runtime.Register("getDivider", "()Landroid/graphics/drawable/Drawable;", "GetGetDividerHandler")] get; [Android.Runtime.Register("setDivider", "(Landroid/graphics/drawable/Drawable;)V", "GetSetDivider_Landroid_graphics_drawable_Drawable_Handler")] set; }
[<get: Android.Runtime.Register("getDivider", "()Landroid/graphics/drawable/Drawable;", "GetGetDividerHandler")>]
[<set: Android.Runtime.Register("setDivider", "(Landroid/graphics/drawable/Drawable;)V", "GetSetDivider_Landroid_graphics_drawable_Drawable_Handler")>]
member this.Divider : Android.Graphics.Drawables.Drawable with get, set

Property Value

the current drawable drawn between list elements

Attributes

Remarks

Property getter documentation:

Returns the drawable that will be drawn between each item in the list.

Java documentation for android.widget.ListView.getDivider().

Property setter documentation:

Sets the drawable that will be drawn between each item in the list.

<strong>Note:</strong> If the drawable does not have an intrinsic height, you should also call #setDividerHeight(int).

Java documentation for android.widget.ListView.setDivider(android.graphics.drawable.Drawable).

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