menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ProgressBarBase - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ProgressBarBase

    Represents the Progress bar graphical control which is used to visualize the progression of any extended operation.

    Inheritance
    System.Object
    ProgressBarBase
    SfCircularProgressBar
    SfLinearProgressBar
    Namespace: Syncfusion.Android.ProgressBar
    Assembly: Syncfusion.SfProgressBar.Android.dll
    Syntax
    public abstract class ProgressBarBase : FrameLayout

    Constructors

    ProgressBarBase(Context)

    Initializes a new instance of the ProgressBarBase class.

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

    The context.

    ProgressBarBase(Context, IAttributeSet)

    Initializes a new instance of the ProgressBarBase class.

    Declaration
    public ProgressBarBase(Context context, IAttributeSet attributes)
    Parameters
    Type Name Description
    Android.Content.Context context

    The context.

    Android.Util.IAttributeSet attributes

    The attributes.

    ProgressBarBase(Context, IAttributeSet, Int32)

    Initializes a new instance of the ProgressBarBase class.

    Declaration
    public ProgressBarBase(Context context, IAttributeSet attributes, int styleAttributes)
    Parameters
    Type Name Description
    Android.Content.Context context

    The context.

    Android.Util.IAttributeSet attributes

    The attributes.

    System.Int32 styleAttributes

    The style attributes.

    ProgressBarBase(Context, IAttributeSet, Int32, Int32)

    Initializes a new instance of the ProgressBarBase class.

    Declaration
    public ProgressBarBase(Context context, IAttributeSet attributes, int styleAttributes, int styleRes)
    Parameters
    Type Name Description
    Android.Content.Context context

    The context.

    Android.Util.IAttributeSet attributes

    The attributes.

    System.Int32 styleAttributes

    The style attributes.

    System.Int32 styleRes

    The style res.

    ProgressBarBase(IntPtr, JniHandleOwnership)

    Initializes a new instance of the ProgressBarBase class.

    Declaration
    public ProgressBarBase(IntPtr javaReference, JniHandleOwnership transfer)
    Parameters
    Type Name Description
    System.IntPtr javaReference

    The java reference.

    Android.Runtime.JniHandleOwnership transfer

    The transfer.

    Properties

    AnimationDuration

    Gets or sets the duration of the animation for primary progress bar.

    Declaration
    public double AnimationDuration { get; set; }
    Property Value
    Type Description
    System.Double

    The duration of the animation.

    GapWidth

    Gets or sets the value that determines gap between the segments.

    Declaration
    public double GapWidth { get; set; }
    Property Value
    Type Description
    System.Double

    The width of the gap.

    IndeterminateAnimationDuration

    Gets or sets the duration an animation takes to complete one cycle for the indicator.

    Declaration
    public double IndeterminateAnimationDuration { get; set; }
    Property Value
    Type Description
    System.Double

    The duration of the animation.

    IndeterminateIndicatorWidth

    Gets or sets the level of indicator in indeterminate state.

    Declaration
    public double IndeterminateIndicatorWidth { get; set; }
    Property Value
    Type
    System.Double

    IndeterminateProgressDrawable

    Gets or sets the drawable for indeterminate state.

    Declaration
    public Drawable IndeterminateProgressDrawable { get; set; }
    Property Value
    Type
    Android.Graphics.Drawables.Drawable

    IsIndeterminate

    Gets or sets a value indicating whether progress bar is in indeterminate state.

    Declaration
    public bool IsIndeterminate { get; set; }
    Property Value
    Type
    System.Boolean

    Maximum

    Gets or sets the maximum range value of the progress bar.

    Declaration
    public double Maximum { get; set; }
    Property Value
    Type
    System.Double

    Minimum

    Gets or sets the minimum range value of the progress bar.

    Declaration
    public double Minimum { get; set; }
    Property Value
    Type
    System.Double

    Progress

    Gets or sets the progress value.

    Declaration
    public double Progress { get; set; }
    Property Value
    Type
    System.Double

    ProgressColor

    Gets or sets the color of the progress indicator.

    Declaration
    public Color ProgressColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    ProgressDrawable

    Gets or sets the progress drawable for the custom progress bar.

    Declaration
    public Drawable ProgressDrawable { get; set; }
    Property Value
    Type Description
    Android.Graphics.Drawables.Drawable

    The progress drawable.

    RangeColors

    Gets or sets collection of colors to the progress indicator based on the range constraint.

    Declaration
    public RangeColorCollection RangeColors { get; set; }
    Property Value
    Type
    RangeColorCollection

    SegmentCount

    Gets or sets a count of the segments in progress bar.

    Declaration
    public int SegmentCount { get; set; }
    Property Value
    Type Description
    System.Int32

    The segment count.

    TrackColor

    Gets or sets the color of the track.

    Declaration
    public Color TrackColor { get; set; }
    Property Value
    Type
    Android.Graphics.Color

    Methods

    OnAttachedToWindow()

    This is called when the view is attached to a window.

    Declaration
    protected override void OnAttachedToWindow()

    OnDraw(Canvas)

    Drawing the progress bar.

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

    The canvas.

    OnFinishInflate()

    Finalize inflating a view from XML.

    Declaration
    protected override void OnFinishInflate()

    OnMeasure(Int32, Int32)

    Measures the device dimensions.

    Declaration
    protected override void OnMeasure(int widthMeasureSpec, int heightMeasureSpec)
    Parameters
    Type Name Description
    System.Int32 widthMeasureSpec

    Width measure spec.

    System.Int32 heightMeasureSpec

    Height measure spec.

    Events

    ProgressCompleted

    Occurs when Progress value attains Maximum value.

    Declaration
    public event EventHandler<ProgressValueEventArgs> ProgressCompleted
    Event Type
    Type
    System.EventHandler<ProgressValueEventArgs>

    ValueChanged

    Occurs when Progress value changed.

    Declaration
    public event EventHandler<ProgressValueEventArgs> ValueChanged
    Event Type
    Type
    System.EventHandler<ProgressValueEventArgs>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved