![]() |
ActionComponents
04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
|
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... | |
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
.
ActionComponents.ACViewController.ACViewController | ( | Activity | activity | ) |
Initializes a new instance of the ActionComponents.ACViewController class.
activity | Activity. |
ActionComponents.ACViewController.ACViewController | ( | Activity | activity, |
View | view | ||
) |
Initializes a new instance of the ActionComponents.ACViewController class.
activity | Activity. |
view | View. |
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.
activity | Activity. |
parser | Parser. |
root | Root. |
ActionComponents.ACViewController.ACViewController | ( | Activity | activity, |
int | resource, | ||
ViewGroup | root | ||
) |
Initializes a new instance of the ActionComponents.ACViewController class.
activity | Activity. |
resource | Resource. |
root | Root. |
ActionComponents.ACViewController.ACViewController | ( | Activity | activity, |
int | resource | ||
) |
Initializes a new instance of the ActionComponents.ACViewController class.
activity | Activity. |
resource | Resource. |
ActionComponents.ACViewController.ACViewController | ( | Activity | activity, |
XmlReader | parser, | ||
ViewGroup | root, | ||
bool | attachToRoot | ||
) |
Initializes a new instance of the ActionComponents.ACViewController class.
activity | Activity. |
parser | Parser. |
root | Root. |
attachToRoot | If set to true attach to root. |
ActionComponents.ACViewController.ACViewController | ( | Activity | activity, |
int | resource, | ||
ViewGroup | root, | ||
bool | attachToRoot | ||
) |
Initializes a new instance of the ActionComponents.ACViewController class.
activity | Activity. |
resource | Resource. |
root | Root. |
attachToRoot | If set to true attach to root. |
|
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
void ActionComponents.ACViewController.LoadLayout | ( | XmlReader | parser, |
ViewGroup | root | ||
) |
Loads the layout into the View
being controlled by this ActionComponents.ACViewController.
parser | Parser. |
root | Root. |
void ActionComponents.ACViewController.LoadLayout | ( | int | resource | ) |
Loads the layout into the View
being controlled by this ActionComponents.ACViewController.
resource | Resource. |
void ActionComponents.ACViewController.LoadLayout | ( | int | resource, |
ViewGroup | root | ||
) |
Loads the layout into the View
being controlled by this ActionComponents.ACViewController.
resource | Resource. |
root | Root. |
void ActionComponents.ACViewController.LoadLayout | ( | XmlReader | parser, |
ViewGroup | root, | ||
bool | attachToRoot | ||
) |
Loads the layout into the View
being controlled by this ActionComponents.ACViewController.
parser | Parser. |
root | Root. |
attachToRoot | If 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.
resource | Resource. |
root | Root. |
attachToRoot | If set to true attach to root. |
|
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
savedInstanceState | Saved instance state. |
|
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
outState | Out state. |
|
get |
Gets the Activity
this ActionComponents.ACViewController is attached to
The activity.
|
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
.
|
get |
Gets a value indicating whether this ActionComponents.ACViewController is initialized.
true
if initialized; otherwise, false
.
|
getset |
Gets or sets the View
being controlled by this ActionComponents.ACViewController
The view.