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

The ActionComponents.ACView is a custom RelativeLayout with built-in helper routines to automatically handle user interaction such as dragging (with optional constraints on the x and y axis), events such as Touched, Moved and Released and moving, and resizing. The ActionComponents.ACView includes a Purge method to release the memory being held by it's subviews and layouts. More...

Inheritance diagram for ActionComponents.ACView:
Collaboration diagram for ActionComponents.ACView:

Public Member Functions

 ACView (Context context)
 Initializes a new instance of the ActionComponents.ACView class. More...
 
 ACView (Context context, IAttributeSet attr)
 Initializes a new instance of the ActionComponents.ACView class. More...
 
 ACView (IntPtr javaReference, JniHandleOwnership transfer)
 Initializes a new instance of the ActionComponents.ACView class. More...
 
 ACView (Context context, IAttributeSet attr, int defStyle)
 Initializes a new instance of the ActionComponents.ACView class. More...
 
void MoveToPoint (int x, int y)
 Moves this ActionComponents.ACView to the given point and honors any ActionComponents.ACViewDragConstraints applied to the X or Y axis More...
 
void MoveToPoint (Point point)
 Moves this ActionComponents.ACView to the given point and honors any ActionComponents.ACViewDragConstraints applied to the X or Y axis More...
 
void Resize (int width, int height)
 Resize this ActionComponents.ACView to the specified width and height. More...
 
bool PointInside (int x, int y)
 Test to see if the given x and y coordinates are inside this ActionComponents.ACView More...
 
bool PointInside (Point pt)
 Test to see if the given point is inside this ActionComponents.ACView More...
 
void Purge (bool forceGarbageCollection)
 The Purge command causes this ActionComponents.ACView to force the removal of any subview from the screen and dispose of the memory that they contain. If forceGarbageCollection is true, garbage collection will be forced at the end of the purge cycle. The Purge command will cascade to any ActionComponents.ACView or ActionComponents.ACImageView subviews attached to this ActionComponents.ACView More...
 
override bool OnTouchEvent (MotionEvent e)
 Raises the touch event event. More...
 
delegate void ACViewTouchedDelegate (ACView view)
 Occurs when this ActionComponents.ACView is touched More...
 
delegate void ACViewMovedDelegate (ACView view)
 Occurs when this ActionComponents.ACView is moved More...
 
delegate void ACViewReleasedDelegate (ACView view)
 Occurs when this ActionComponents.ACView is released More...
 

Static Public Member Functions

static Display DefaultDisplay (View view)
 Gets the default display for the given view More...
 
static Rect WindowVisibleDisplayFrame (View view)
 Gets the window visible display frame for the given view. More...
 
static int StatusBarHeight (View view)
 Gets the status bar height for the given view. More...
 
static int ActionBarHeight (View view)
 Gets the height of the action bar for a view. More...
 
static int NavigationBarHeight (View view)
 Gets the navigation bar height for the given view. More...
 
static int DefaultDisplayHeight (View view)
 Returns the height of the default display for the given view. More...
 
static int DefaultDisplayWidth (View view)
 Returns the width for the default display for the given view. More...
 
static int GetViewHeight (View view)
 Decodes the LayoutParameters for the given View and returns the Height property More...
 
static void SetViewHeight (View view, int height)
 Decodes the LayoutParameters for the given View and sets the Height property More...
 
static int GetViewWidth (View view)
 Decodes the LayoutParameters for the given View and returns the Width property More...
 
static void SetViewWidth (View view, int Width)
 Decodes the LayoutParameters for the given View and sets the Width property More...
 
static int GetViewLeftMargin (View view)
 Decodes the LayoutParameters for the given View and returns the LeftMargin property More...
 
static void SetViewLeftMargin (View view, int LeftMargin)
 Decodes the LayoutParameters for the given View and sets the LeftMargin property More...
 
static int GetViewRightMargin (View view)
 Decodes the LayoutParameters for the given View and returns the RightMargin property More...
 
static void SetViewRightMargin (View view, int RightMargin)
 Decodes the LayoutParameters for the given View and sets the RightMargin property More...
 
static int GetViewTopMargin (View view)
 Decodes the LayoutParameters for the given View and returns the TopMargin property More...
 
static void SetViewTopMargin (View view, int TopMargin)
 Decodes the LayoutParameters for the given View and sets the TopMargin property More...
 
static int GetViewBottomMargin (View view)
 Decodes the LayoutParameters for the given View and returns the BottomMargin property More...
 
static void SetViewBottomMargin (View view, int BottomMargin)
 Decodes the LayoutParameters for the given View and sets the BottomMargin property More...
 

Properties

Object tag [get, set]
 Gets or sets the [OPTIONAL] tag that can be assosciated with this ActionComponents.ACView More...
 
bool draggable [get, set]
 Gets or sets a value indicating whether this ActionComponents.ACView is draggable. More...
 
bool dragging [get]
 Gets a value indicating whether this ActionComponents.ACView is being dragged by the user. More...
 
bool bringToFrontOnTouched [get, set]
 Gets or sets a value indicating whether this ActionComponents.ACView is automatically brought to the front when touched. More...
 
ACViewDragConstraint xConstraint [get, set]
 Gets or sets the ActionComponents.ACViewDragConstraint applied to the x axis of this ActionComponents.ACView More...
 
ACViewDragConstraint yConstraint [get, set]
 Gets or sets the ActionComponents.ACViewDragConstraint applied to the y axis of this ActionComponents.ACView More...
 
int LeftMargin [get, set]
 Gets or sets the left margin. More...
 
int TopMargin [get, set]
 Gets or sets the top margin. More...
 
int RightMargin [get, set]
 Gets or sets the right margin. More...
 
int BottomMargin [get, set]
 Gets or sets the bottom margin. More...
 
int LayoutWidth [get, set]
 Gets or sets the width of the layout. More...
 
int LayoutHeight [get, set]
 Gets or sets the height of the layout. More...
 

Events

ACViewTouchedDelegate Touched
 
ACViewMovedDelegate Moved
 
ACViewReleasedDelegate Released
 

Detailed Description

The ActionComponents.ACView is a custom RelativeLayout with built-in helper routines to automatically handle user interaction such as dragging (with optional constraints on the x and y axis), events such as Touched, Moved and Released and moving, and resizing. The ActionComponents.ACView includes a Purge method to release the memory being held by it's subviews and layouts.

NOTICE: The ActionComponents.ACView works best if hosted inside of a RelativeLayout. Available in ActionPack Business or Enterprise only.

Constructor & Destructor Documentation

ActionComponents.ACView.ACView ( Context  context)

Initializes a new instance of the ActionComponents.ACView class.

Parameters
contextContext.

Here is the caller graph for this function:

ActionComponents.ACView.ACView ( Context  context,
IAttributeSet  attr 
)

Initializes a new instance of the ActionComponents.ACView class.

Parameters
contextContext.
attrAttr.
ActionComponents.ACView.ACView ( IntPtr  javaReference,
JniHandleOwnership  transfer 
)

Initializes a new instance of the ActionComponents.ACView class.

Parameters
javaReferenceJava reference.
transferTransfer.
ActionComponents.ACView.ACView ( Context  context,
IAttributeSet  attr,
int  defStyle 
)

Initializes a new instance of the ActionComponents.ACView class.

Parameters
contextContext.
attrAttr.
defStyleDef style.

Member Function Documentation

static int ActionComponents.ACView.ActionBarHeight ( View  view)
static

Gets the height of the action bar for a view.

Returns
The bar height.
Parameters
viewView.
delegate void ActionComponents.ACView.ACViewMovedDelegate ( ACView  view)

Occurs when this ActionComponents.ACView is moved

delegate void ActionComponents.ACView.ACViewReleasedDelegate ( ACView  view)

Occurs when this ActionComponents.ACView is released

delegate void ActionComponents.ACView.ACViewTouchedDelegate ( ACView  view)

Occurs when this ActionComponents.ACView is touched

Here is the caller graph for this function:

static Display ActionComponents.ACView.DefaultDisplay ( View  view)
static

Gets the default display for the given view

Returns
The default display.
Parameters
viewView.

Here is the caller graph for this function:

static int ActionComponents.ACView.DefaultDisplayHeight ( View  view)
static

Returns the height of the default display for the given view.

Returns
The display height.
Parameters
viewView.

Here is the call graph for this function:

Here is the caller graph for this function:

static int ActionComponents.ACView.DefaultDisplayWidth ( View  view)
static

Returns the width for the default display for the given view.

Returns
The display width.
Parameters
viewView.

Here is the call graph for this function:

Here is the caller graph for this function:

static int ActionComponents.ACView.GetViewBottomMargin ( View  view)
static

Decodes the LayoutParameters for the given View and returns the BottomMargin property

Returns
The view BottomMargin.
Parameters
viewView.
static int ActionComponents.ACView.GetViewHeight ( View  view)
static

Decodes the LayoutParameters for the given View and returns the Height property

Returns
The view height.
Parameters
viewView.

Here is the call graph for this function:

static int ActionComponents.ACView.GetViewLeftMargin ( View  view)
static

Decodes the LayoutParameters for the given View and returns the LeftMargin property

Returns
The view LeftMargin.
Parameters
viewView.
static int ActionComponents.ACView.GetViewRightMargin ( View  view)
static

Decodes the LayoutParameters for the given View and returns the RightMargin property

Returns
The view RightMargin.
Parameters
viewView.
static int ActionComponents.ACView.GetViewTopMargin ( View  view)
static

Decodes the LayoutParameters for the given View and returns the TopMargin property

Returns
The view TopMargin.
Parameters
viewView.
static int ActionComponents.ACView.GetViewWidth ( View  view)
static

Decodes the LayoutParameters for the given View and returns the Width property

Returns
The view Width.
Parameters
viewView.

Here is the call graph for this function:

Here is the caller graph for this function:

void ActionComponents.ACView.MoveToPoint ( int  x,
int  y 
)

Moves this ActionComponents.ACView to the given point and honors any ActionComponents.ACViewDragConstraints applied to the X or Y axis

Parameters
xThe x coordinate.
yThe y coordinate.

Here is the caller graph for this function:

void ActionComponents.ACView.MoveToPoint ( Point  point)

Moves this ActionComponents.ACView to the given point and honors any ActionComponents.ACViewDragConstraints applied to the X or Y axis

Parameters
ptPoint.
static int ActionComponents.ACView.NavigationBarHeight ( View  view)
static

Gets the navigation bar height for the given view.

Returns
The bar height.
Parameters
viewView.
override bool ActionComponents.ACView.OnTouchEvent ( MotionEvent  e)

Raises the touch event event.

Parameters
eE.

Here is the call graph for this function:

bool ActionComponents.ACView.PointInside ( int  x,
int  y 
)

Test to see if the given x and y coordinates are inside this ActionComponents.ACView

Returns
true, if inside was pointed, false otherwise.
Parameters
xThe x coordinate.
yThe y coordinate.

Here is the caller graph for this function:

bool ActionComponents.ACView.PointInside ( Point  pt)

Test to see if the given point is inside this ActionComponents.ACView

Returns
true, if inside was pointed, false otherwise.
Parameters
ptPoint.

Here is the call graph for this function:

void ActionComponents.ACView.Purge ( bool  forceGarbageCollection)

The Purge command causes this ActionComponents.ACView to force the removal of any subview from the screen and dispose of the memory that they contain. If forceGarbageCollection is true, garbage collection will be forced at the end of the purge cycle. The Purge command will cascade to any ActionComponents.ACView or ActionComponents.ACImageView subviews attached to this ActionComponents.ACView

Parameters
forceGarbageCollectionIf set to true force garbage collection.

Special handling is taken on UIImageViews to ensure that they fully release any image memory that they contain. Simply calling Dispose() doesn't always release the child bitmaps in the ImageView's Image property.

Here is the call graph for this function:

void ActionComponents.ACView.Resize ( int  width,
int  height 
)

Resize this ActionComponents.ACView to the specified width and height.

Parameters
widthWidth.
heightHeight.

Here is the caller graph for this function:

static void ActionComponents.ACView.SetViewBottomMargin ( View  view,
int  BottomMargin 
)
static

Decodes the LayoutParameters for the given View and sets the BottomMargin property

Parameters
viewView.
heightBottomMargin.
static void ActionComponents.ACView.SetViewHeight ( View  view,
int  height 
)
static

Decodes the LayoutParameters for the given View and sets the Height property

Parameters
viewView.
heightHeight.
static void ActionComponents.ACView.SetViewLeftMargin ( View  view,
int  LeftMargin 
)
static

Decodes the LayoutParameters for the given View and sets the LeftMargin property

Parameters
viewView.
heightLeftMargin.
static void ActionComponents.ACView.SetViewRightMargin ( View  view,
int  RightMargin 
)
static

Decodes the LayoutParameters for the given View and sets the RightMargin property

Parameters
viewView.
heightRightMargin.

Here is the caller graph for this function:

static void ActionComponents.ACView.SetViewTopMargin ( View  view,
int  TopMargin 
)
static

Decodes the LayoutParameters for the given View and sets the TopMargin property

Parameters
viewView.
heightTopMargin.
static void ActionComponents.ACView.SetViewWidth ( View  view,
int  Width 
)
static

Decodes the LayoutParameters for the given View and sets the Width property

Parameters
viewView.
heightWidth.
static int ActionComponents.ACView.StatusBarHeight ( View  view)
static

Gets the status bar height for the given view.

Returns
The bar height.
Parameters
viewView.

Here is the caller graph for this function:

static Rect ActionComponents.ACView.WindowVisibleDisplayFrame ( View  view)
static

Gets the window visible display frame for the given view.

Returns
The visible display frame.
Parameters
viewView.

Here is the caller graph for this function:

Property Documentation

int ActionComponents.ACView.BottomMargin
getset

Gets or sets the bottom margin.

The bottom margin.

bool ActionComponents.ACView.bringToFrontOnTouched
getset

Gets or sets a value indicating whether this ActionComponents.ACView is automatically brought to the front when touched.

true if bring to front on touched; otherwise, false.

bool ActionComponents.ACView.draggable
getset

Gets or sets a value indicating whether this ActionComponents.ACView is draggable.

true if is draggable; otherwise, false.

bool ActionComponents.ACView.dragging
get

Gets a value indicating whether this ActionComponents.ACView is being dragged by the user.

true if dragging; otherwise, false.

int ActionComponents.ACView.LayoutHeight
getset

Gets or sets the height of the layout.

The height of the layout.

int ActionComponents.ACView.LayoutWidth
getset

Gets or sets the width of the layout.

The width of the layout.

int ActionComponents.ACView.LeftMargin
getset

Gets or sets the left margin.

The left margin.

int ActionComponents.ACView.RightMargin
getset

Gets or sets the right margin.

The right margin.

Object ActionComponents.ACView.tag
getset

Gets or sets the [OPTIONAL] tag that can be assosciated with this ActionComponents.ACView

The tag.

int ActionComponents.ACView.TopMargin
getset

Gets or sets the top margin.

The top margin.

ACViewDragConstraint ActionComponents.ACView.xConstraint
getset

Gets or sets the ActionComponents.ACViewDragConstraint applied to the x axis of this ActionComponents.ACView

The x constraint.

ACViewDragConstraint ActionComponents.ACView.yConstraint
getset

Gets or sets the ActionComponents.ACViewDragConstraint applied to the y axis of this ActionComponents.ACView

The y constraint.

Event Documentation

ACViewMovedDelegate ActionComponents.ACView.Moved
ACViewReleasedDelegate ActionComponents.ACView.Released
ACViewTouchedDelegate ActionComponents.ACView.Touched