次の方法で共有


RatingBar.NumStars Property

Definition

Returns the number of stars shown. -or- Sets the number of stars to show.

public virtual int NumStars { [Android.Runtime.Register("getNumStars", "()I", "GetGetNumStarsHandler")] get; [Android.Runtime.Register("setNumStars", "(I)V", "GetSetNumStars_IHandler")] set; }
[<get: Android.Runtime.Register("getNumStars", "()I", "GetGetNumStarsHandler")>]
[<set: Android.Runtime.Register("setNumStars", "(I)V", "GetSetNumStars_IHandler")>]
member this.NumStars : int with get, set

Property Value

The number of stars shown.

Attributes

Remarks

Property getter documentation:

Returns the number of stars shown.

Java documentation for android.widget.RatingBar.getNumStars().

Property setter documentation:

Sets the number of stars to show. In order for these to be shown properly, it is recommended the layout width of this widget be wrap content.

Java documentation for android.widget.RatingBar.setNumStars(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.

Applies to