Switch.SetTrackResource(Int32) Method

Definition

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

[Android.Runtime.Register("setTrackResource", "(I)V", "GetSetTrackResource_IHandler")]
public virtual void SetTrackResource (int resId);
[<Android.Runtime.Register("setTrackResource", "(I)V", "GetSetTrackResource_IHandler")>]
abstract member SetTrackResource : int -> unit
override this.SetTrackResource : int -> unit

Parameters

resId
Int32

Resource ID of a track drawable

Attributes

Remarks

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

Java documentation for android.widget.Switch.setTrackResource(int).

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