Version

Legend Constructor(Context,IAttributeSet,Int32,Int32)

A constructor used to perform inflation from XML and apply a class-specific base style from a theme attribute or style resource.
Syntax
public Legend( 
   Android.Content.Context context,
   Android.Util.IAttributeSet attrs,
   int defStyleAttr,
   int defStyleRes
)

Parameters

context
The Context the view is running in, through which it can access the current theme, resources, etc.
attrs
The attributes of the XML tag that is inflating the view.
defStyleAttr
An attribute in the current theme that contains a reference to the style resource that supplies default values for the view. Can be 0 to not look for defaults.
defStyleRes
A resource identifier of a style resource that supplies default values for the view, used only if defStyleAttr is 0 or cannot be found in the theme. Can be 0 to not look for defaults.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also