alexa
menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class SfRatingItem

    Implements the properties used to get or set the custom views for the control for rendering.

    Inheritance
    System.Object
    SfRatingItem
    Namespace: Com.Syncfusion.Rating
    Assembly: Syncfusion.SfRating.Android.dll
    Syntax
    public class SfRatingItem : View

    Constructors

    SfRatingItem(Context)

    Initializes a new instance of the SfRatingItem class.

    Declaration
    public SfRatingItem(Context context)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context Type

    SfRatingItem(Context, IAttributeSet)

    Initializes a new instance of the SfRatingItem class.

    Declaration
    public SfRatingItem(Context context, IAttributeSet attrs)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context Type

    Android.Util.IAttributeSet attrs

    Attribute set

    SfRatingItem(Context, IAttributeSet, Int32)

    Initializes a new instance of the SfRatingItem class.

    Declaration
    public SfRatingItem(Context context, IAttributeSet attrs, int defStyleAttr)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context Set

    Android.Util.IAttributeSet attrs

    Attribute set

    System.Int32 defStyleAttr

    Integer type.

    SfRatingItem(Context, SfRating)

    Initializes a new instance of the SfRatingItem class.

    Declaration
    public SfRatingItem(Context context, SfRating sfrating)
    Parameters
    Type Name Description
    Android.Content.Context context

    Context Type

    SfRating sfrating

    Rating type.

    Properties

    SelectedView

    Gets or sets custom view that render on selected rating item.

    Declaration
    public View SelectedView { get; set; }
    Property Value
    Type Description
    Android.Views.View

    The selected view.

    UnSelectedView

    Gets or sets custom view that render on unselected rating item

    Declaration
    public View UnSelectedView { get; set; }
    Property Value
    Type Description
    Android.Views.View

    The un selected view.

    Methods

    Dispose(Boolean)

    Dispose the specified disposing.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    If set to true disposing.

    OnDraw(Canvas)

    On Draw method.

    Declaration
    protected override void OnDraw(Canvas canvas)
    Parameters
    Type Name Description
    Android.Graphics.Canvas canvas

    Canvas type.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved