![]() |
ActionComponents
04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
|
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...
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 |
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.
ActionComponents.ACView.ACView | ( | Context | context | ) |
Initializes a new instance of the ActionComponents.ACView class.
context | Context. |
ActionComponents.ACView.ACView | ( | Context | context, |
IAttributeSet | attr | ||
) |
Initializes a new instance of the ActionComponents.ACView class.
context | Context. |
attr | Attr. |
ActionComponents.ACView.ACView | ( | IntPtr | javaReference, |
JniHandleOwnership | transfer | ||
) |
Initializes a new instance of the ActionComponents.ACView class.
javaReference | Java reference. |
transfer | Transfer. |
ActionComponents.ACView.ACView | ( | Context | context, |
IAttributeSet | attr, | ||
int | defStyle | ||
) |
Initializes a new instance of the ActionComponents.ACView class.
context | Context. |
attr | Attr. |
defStyle | Def style. |
|
static |
Gets the height of the action bar for a view.
view | View. |
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 | ) |
|
static |
Gets the default display for the given view
view | View. |
|
static |
Returns the height of the default display for the given view.
view | View. |
|
static |
Returns the width for the default display for the given view.
view | View. |
|
static |
Decodes the LayoutParameters
for the given View
and returns the BottomMargin
property
view | View. |
|
static |
Decodes the LayoutParameters
for the given View
and returns the Height
property
view | View. |
|
static |
Decodes the LayoutParameters
for the given View
and returns the LeftMargin
property
view | View. |
|
static |
Decodes the LayoutParameters
for the given View
and returns the RightMargin
property
view | View. |
|
static |
Decodes the LayoutParameters
for the given View
and returns the TopMargin
property
view | View. |
|
static |
Decodes the LayoutParameters
for the given View
and returns the Width
property
view | View. |
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
x | The x coordinate. |
y | The y coordinate. |
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
pt | Point. |
|
static |
Gets the navigation bar height for the given view.
view | View. |
override bool ActionComponents.ACView.OnTouchEvent | ( | MotionEvent | e | ) |
Raises the touch event event.
e | E. |
bool ActionComponents.ACView.PointInside | ( | int | x, |
int | y | ||
) |
Test to see if the given x and y coordinates are inside this ActionComponents.ACView
true
, if inside was pointed, false
otherwise.x | The x coordinate. |
y | The y coordinate. |
bool ActionComponents.ACView.PointInside | ( | Point | pt | ) |
Test to see if the given point is inside this ActionComponents.ACView
true
, if inside was pointed, false
otherwise.pt | Point. |
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
forceGarbageCollection | If 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.
void ActionComponents.ACView.Resize | ( | int | width, |
int | height | ||
) |
Resize this ActionComponents.ACView to the specified width and height.
width | Width. |
height | Height. |
|
static |
Decodes the LayoutParameters
for the given View
and sets the BottomMargin
property
view | View. |
height | BottomMargin. |
|
static |
Decodes the LayoutParameters
for the given View
and sets the Height
property
view | View. |
height | Height. |
|
static |
Decodes the LayoutParameters
for the given View
and sets the LeftMargin
property
view | View. |
height | LeftMargin. |
|
static |
Decodes the LayoutParameters
for the given View
and sets the RightMargin
property
view | View. |
height | RightMargin. |
|
static |
Decodes the LayoutParameters
for the given View
and sets the TopMargin
property
view | View. |
height | TopMargin. |
|
static |
Decodes the LayoutParameters
for the given View
and sets the Width
property
view | View. |
height | Width. |
|
static |
Gets the status bar height for the given view.
view | View. |
|
static |
Gets the window visible display frame for the given view.
view | View. |
|
getset |
Gets or sets the bottom margin.
The bottom margin.
|
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
.
|
getset |
Gets or sets a value indicating whether this ActionComponents.ACView is draggable.
true
if is draggable; otherwise, false
.
|
get |
Gets a value indicating whether this ActionComponents.ACView is being dragged by the user.
true
if dragging; otherwise, false
.
|
getset |
Gets or sets the height of the layout.
The height of the layout.
|
getset |
Gets or sets the width of the layout.
The width of the layout.
|
getset |
Gets or sets the left margin.
The left margin.
|
getset |
Gets or sets the right margin.
The right margin.
|
getset |
Gets or sets the [OPTIONAL] tag that can be assosciated with this ActionComponents.ACView
The tag.
|
getset |
Gets or sets the top margin.
The top margin.
|
getset |
Gets or sets the ActionComponents.ACViewDragConstraint applied to the x axis
of this ActionComponents.ACView
The x constraint.
|
getset |
Gets or sets the ActionComponents.ACViewDragConstraint applied to the y axis
of this ActionComponents.ACView
The y constraint.
ACViewMovedDelegate ActionComponents.ACView.Moved |
ACViewReleasedDelegate ActionComponents.ACView.Released |
ACViewTouchedDelegate ActionComponents.ACView.Touched |