ActionComponents  04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
ActionComponents.ACViewController Class Reference

The ActionComponents.ACViewController is a helper class for working with Views that have been inflated from a .axml file by providing a place to hold the code to handle any UI Widgets so you don't have to put it in the Activity class that is loading the view. Create a child of this class, override the Initialize method and place the code to handle your UI Widgets there. More...

Public Member Functions

 ACViewController (Activity activity)
 Initializes a new instance of the ActionComponents.ACViewController class. More...
 
 ACViewController (Activity activity, View view)
 Initializes a new instance of the ActionComponents.ACViewController class. More...
 
 ACViewController (Activity activity, XmlReader parser, ViewGroup root)
 Initializes a new instance of the ActionComponents.ACViewController class. More...
 
 ACViewController (Activity activity, int resource, ViewGroup root)
 Initializes a new instance of the ActionComponents.ACViewController class. More...
 
 ACViewController (Activity activity, int resource)
 Initializes a new instance of the ActionComponents.ACViewController class. More...
 
 ACViewController (Activity activity, XmlReader parser, ViewGroup root, bool attachToRoot)
 Initializes a new instance of the ActionComponents.ACViewController class. More...
 
 ACViewController (Activity activity, int resource, ViewGroup root, bool attachToRoot)
 Initializes a new instance of the ActionComponents.ACViewController class. More...
 
virtual void Initialize ()
 Called when a new version of the ActionComponents.ACViewController needs to be initialized More...
 
virtual void OnSaveInstanceState (Bundle outState)
 Called when any UI element in the View being controlled by this ActionComponents.ACViewController needs to save their current state before a device state change More...
 
virtual void OnRestoreInstanceState (Bundle savedInstanceState)
 Called when any UI element in the View being controlled by this ActionComponents.ACViewController needs to restore it's state after a device state change More...
 
void LoadLayout (XmlReader parser, ViewGroup root)
 Loads the layout into the View being controlled by this ActionComponents.ACViewController. More...
 
void LoadLayout (int resource)
 Loads the layout into the View being controlled by this ActionComponents.ACViewController. More...
 
void LoadLayout (int resource, ViewGroup root)
 Loads the layout into the View being controlled by this ActionComponents.ACViewController. More...
 
void LoadLayout (XmlReader parser, ViewGroup root, bool attachToRoot)
 Loads the layout into the View being controlled by this ActionComponents.ACViewController. More...
 
void LoadLayout (int resource, ViewGroup root, bool attachToRoot)
 Loads the layout into the View being controlled by this ActionComponents.ACViewController. More...
 

Properties

Activity activity [get]
 Gets the Activity this ActionComponents.ACViewController is attached to More...
 
bool attachedToWindow [get]
 Gets a value indicating whether the View being controller by this ActionComponents.ACViewController is attached to a window. More...
 
bool initialized [get]
 Gets a value indicating whether this ActionComponents.ACViewController is initialized. More...
 
View view [get, set]
 Gets or sets the View being controlled by this ActionComponents.ACViewController More...
 

Detailed Description

The ActionComponents.ACViewController is a helper class for working with Views that have been inflated from a .axml file by providing a place to hold the code to handle any UI Widgets so you don't have to put it in the Activity class that is loading the view. Create a child of this class, override the Initialize method and place the code to handle your UI Widgets there.

This class is helpful when making the view that will be controlled by other Action Components such as NavBar.

Constructor & Destructor Documentation

ActionComponents.ACViewController.ACViewController ( Activity  activity)

Initializes a new instance of the ActionComponents.ACViewController class.

Parameters
activityActivity.
ActionComponents.ACViewController.ACViewController ( Activity  activity,
View  view 
)

Initializes a new instance of the ActionComponents.ACViewController class.

Parameters
activityActivity.
viewView.

This constructor assumes that the View has already been attached to a window and displayed

ActionComponents.ACViewController.ACViewController ( Activity  activity,
XmlReader  parser,
ViewGroup  root 
)

Initializes a new instance of the ActionComponents.ACViewController class.

Parameters
activityActivity.
parserParser.
rootRoot.

Here is the call graph for this function:

ActionComponents.ACViewController.ACViewController ( Activity  activity,
int  resource,
ViewGroup  root 
)

Initializes a new instance of the ActionComponents.ACViewController class.

Parameters
activityActivity.
resourceResource.
rootRoot.

Here is the call graph for this function:

ActionComponents.ACViewController.ACViewController ( Activity  activity,
int  resource 
)

Initializes a new instance of the ActionComponents.ACViewController class.

Parameters
activityActivity.
resourceResource.

Here is the call graph for this function:

ActionComponents.ACViewController.ACViewController ( Activity  activity,
XmlReader  parser,
ViewGroup  root,
bool  attachToRoot 
)

Initializes a new instance of the ActionComponents.ACViewController class.

Parameters
activityActivity.
parserParser.
rootRoot.
attachToRootIf set to true attach to root.

Here is the call graph for this function:

ActionComponents.ACViewController.ACViewController ( Activity  activity,
int  resource,
ViewGroup  root,
bool  attachToRoot 
)

Initializes a new instance of the ActionComponents.ACViewController class.

Parameters
activityActivity.
resourceResource.
rootRoot.
attachToRootIf set to true attach to root.

Here is the call graph for this function:

Member Function Documentation

virtual void ActionComponents.ACViewController.Initialize ( )
virtual

Called when a new version of the ActionComponents.ACViewController needs to be initialized

Override this method and place the code to handle your UI elements here

Here is the caller graph for this function:

void ActionComponents.ACViewController.LoadLayout ( XmlReader  parser,
ViewGroup  root 
)

Loads the layout into the View being controlled by this ActionComponents.ACViewController.

Parameters
parserParser.
rootRoot.

Here is the caller graph for this function:

void ActionComponents.ACViewController.LoadLayout ( int  resource)

Loads the layout into the View being controlled by this ActionComponents.ACViewController.

Parameters
resourceResource.
void ActionComponents.ACViewController.LoadLayout ( int  resource,
ViewGroup  root 
)

Loads the layout into the View being controlled by this ActionComponents.ACViewController.

Parameters
resourceResource.
rootRoot.
void ActionComponents.ACViewController.LoadLayout ( XmlReader  parser,
ViewGroup  root,
bool  attachToRoot 
)

Loads the layout into the View being controlled by this ActionComponents.ACViewController.

Parameters
parserParser.
rootRoot.
attachToRootIf set to true attach to root.
void ActionComponents.ACViewController.LoadLayout ( int  resource,
ViewGroup  root,
bool  attachToRoot 
)

Loads the layout into the View being controlled by this ActionComponents.ACViewController.

Parameters
resourceResource.
rootRoot.
attachToRootIf set to true attach to root.
virtual void ActionComponents.ACViewController.OnRestoreInstanceState ( Bundle  savedInstanceState)
virtual

Called when any UI element in the View being controlled by this ActionComponents.ACViewController needs to restore it's state after a device state change

Parameters
savedInstanceStateSaved instance state.

Here is the call graph for this function:

virtual void ActionComponents.ACViewController.OnSaveInstanceState ( Bundle  outState)
virtual

Called when any UI element in the View being controlled by this ActionComponents.ACViewController needs to save their current state before a device state change

Parameters
outStateOut state.

Property Documentation

Activity ActionComponents.ACViewController.activity
get

Gets the Activity this ActionComponents.ACViewController is attached to

The activity.

bool ActionComponents.ACViewController.attachedToWindow
get

Gets a value indicating whether the View being controller by this ActionComponents.ACViewController is attached to a window.

true if attached to window; otherwise, false.

bool ActionComponents.ACViewController.initialized
get

Gets a value indicating whether this ActionComponents.ACViewController is initialized.

true if initialized; otherwise, false.

View ActionComponents.ACViewController.view
getset

Gets or sets the View being controlled by this ActionComponents.ACViewController

The view.