Switch.TrackDrawable Property

Definition

Get the drawable used for the track that the switch slides within. -or- Set the drawable used for the track that the switch slides within.

public virtual Android.Graphics.Drawables.Drawable? TrackDrawable { [Android.Runtime.Register("getTrackDrawable", "()Landroid/graphics/drawable/Drawable;", "GetGetTrackDrawableHandler")] get; [Android.Runtime.Register("setTrackDrawable", "(Landroid/graphics/drawable/Drawable;)V", "GetSetTrackDrawable_Landroid_graphics_drawable_Drawable_Handler")] set; }
[<get: Android.Runtime.Register("getTrackDrawable", "()Landroid/graphics/drawable/Drawable;", "GetGetTrackDrawableHandler")>]
[<set: Android.Runtime.Register("setTrackDrawable", "(Landroid/graphics/drawable/Drawable;)V", "GetSetTrackDrawable_Landroid_graphics_drawable_Drawable_Handler")>]
member this.TrackDrawable : Android.Graphics.Drawables.Drawable with get, set

Property Value

Track drawable

Attributes

Remarks

Property getter documentation:

Get the drawable used for the track that the switch slides within.

Java documentation for android.widget.Switch.getTrackDrawable().

Property setter documentation:

Set the drawable used for the track that the switch slides within.

Java documentation for android.widget.Switch.setTrackDrawable(android.graphics.drawable.Drawable).

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