menu

Xamarin.Android

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

    Show / Hide Table of Contents

    Class SfLinearProgressBar

    The linear progress bar provides a customizable visual that indicates the progress of a task.

    Inheritance
    System.Object
    ProgressBarBase
    SfLinearProgressBar
    Inherited Members
    ProgressBarBase.AnimationDuration
    ProgressBarBase.GapWidth
    ProgressBarBase.IndeterminateAnimationDuration
    ProgressBarBase.IndeterminateIndicatorWidth
    ProgressBarBase.IndeterminateProgressDrawable
    ProgressBarBase.IsIndeterminate
    ProgressBarBase.Maximum
    ProgressBarBase.Minimum
    ProgressBarBase.OnDraw(Canvas)
    ProgressBarBase.Progress
    ProgressBarBase.ProgressColor
    ProgressBarBase.ProgressCompleted
    ProgressBarBase.ProgressDrawable
    ProgressBarBase.RangeColors
    ProgressBarBase.SegmentCount
    ProgressBarBase.TrackColor
    ProgressBarBase.ValueChanged
    Namespace: Syncfusion.Android.ProgressBar
    Assembly: Syncfusion.SfProgressBar.Android.dll
    Syntax
    public class SfLinearProgressBar : ProgressBarBase

    Constructors

    SfLinearProgressBar(Context)

    Initializes a new instance of the SfLinearProgressBar class.

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

    The context.

    SfLinearProgressBar(Context, IAttributeSet)

    Initializes a new instance of the SfLinearProgressBar class.

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

    The context.

    Android.Util.IAttributeSet attributes

    The attributes.

    SfLinearProgressBar(Context, IAttributeSet, Int32)

    Initializes a new instance of the SfLinearProgressBar class.

    Declaration
    public SfLinearProgressBar(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.

    SfLinearProgressBar(Context, IAttributeSet, Int32, Int32)

    Initializes a new instance of the SfLinearProgressBar class.

    Declaration
    public SfLinearProgressBar(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.

    SfLinearProgressBar(IntPtr, JniHandleOwnership)

    Initializes a new instance of the SfLinearProgressBar class.

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

    The java reference.

    Android.Runtime.JniHandleOwnership transfer

    The transfer.

    Properties

    CornerRadius

    Gets or sets the corner radius of the SfLinearProgressBar.

    Declaration
    public float CornerRadius { get; set; }
    Property Value
    Type
    System.Single

    IndicatorPadding

    Gets or sets the padding value for the progress indicator.

    Declaration
    public Thickness IndicatorPadding { get; set; }
    Property Value
    Type Description
    Thickness

    The indicator padding.

    SecondaryAnimationDuration

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

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

    The duration of the animation.

    SecondaryProgress

    Gets or sets the secondary progress value.

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

    SecondaryProgressColor

    Gets or sets the color of the secondary progress indicator.

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

    TrackHeight

    Gets or sets the height of the track.

    Declaration
    public float TrackHeight { get; set; }
    Property Value
    Type Description
    System.Single

    The height of the track.

    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.

    OnAttachedToWindow()

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

    Declaration
    protected override void OnAttachedToWindow()
    Overrides
    ProgressBarBase.OnAttachedToWindow()

    OnFinishInflate()

    Finalize inflating a view from XML.

    Declaration
    protected override void OnFinishInflate()
    Overrides
    ProgressBarBase.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.

    Overrides
    ProgressBarBase.OnMeasure(Int32, Int32)

    OnSizeChanged(Int32, Int32, Int32, Int32)

    Called for size changed.

    Declaration
    protected override void OnSizeChanged(int currentWidth, int currentHeight, int oldWidth, int oldHeight)
    Parameters
    Type Name Description
    System.Int32 currentWidth

    Current width.

    System.Int32 currentHeight

    Current height.

    System.Int32 oldWidth

    The Old width.

    System.Int32 oldHeight

    The Old height.

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