Language

Fragment.Resources Property

Definition

Gets the resources associated with the fragment's host.

public Android.Content.Res.Resources? Resources { [Android.Runtime.Register("getResources", "()Landroid/content/res/Resources;", "")] get; }
[<get: Android.Runtime.Register("getResources", "()Landroid/content/res/Resources;", "")>]
member this.Resources : Android.Content.Res.Resources

Property Value

The resources obtained from the fragment host's context.

Attributes

Remarks

Returns the resources associated with the fragment's host. Throws an IllegalStateException if the fragment is not attached.

Android reference for android.app.Fragment.getResources.

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