Class SfLinearProgressBar
The linear progress bar provides a customizable visual that indicates the progress of a task.
Inherited Members
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   | 
      
OnAttachedToWindow()
This is called when the view is attached to a window.
Declaration
protected override void OnAttachedToWindow()
  Overrides
OnFinishInflate()
Finalize inflating a view from XML.
Declaration
protected override void OnFinishInflate()
  Overrides
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
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.  |