Skip to end of metadata
Go to start of metadata

Represents an extensions methods for IFragment interface.

Definition

public static class FragmentExtensions

Summary

The following table summarizes the members exposed in this class.

Static Methods

GetDrawable(Fragment, int) Get drawable by resource ID.
GetDrawable(Fragment, string) Get drawable by resource name.
GetDrawable(Fragment, Color) Get drawable by resource color.

Static Methods

public static Drawable GetDrawable(Fragment fragment, int id)

Get drawable by resource ID.

Parameters

fragment The current fragment.
id The resource ID.

Return Types

The drawable.

public static Drawable GetDrawable(Fragment fragment, string name)

Get drawable by resource name.

Parameters

fragment The current fragment.
name The resource name.

Return Types

The drawable.

public static Drawable GetDrawable(Fragment fragment, Color color)

Get drawable by resource color.

Parameters

fragment The current fragment.
color The resource color.

Return Types

The drawable.
  • No labels