![]() |
ActionComponents
04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
|
Represents a simulated iOS UIView
used to ease the porting of UI code from iOS to Android. The UIView
is a customized version of an Android View
using a RelativeLayout
with features its features mapped to the iOS UIView
names and callin structures. NOTE: Only a small percentage of UIView
has been ported to support Action Components.
More...
Public Member Functions | |
UIView () | |
Initializes a new instance of the T:UIKit.UIView class. More... | |
UIView (CGRect rect) | |
Initializes a new instance of the T:UIKit.UIView class. More... | |
UIView (Context context) | |
Initializes a new instance of the T:UIKit.UIView class. More... | |
UIView (Context context, IAttributeSet attr) | |
Initializes a new instance of the T:UIKit.UIView class. More... | |
UIView (IntPtr javaReference, JniHandleOwnership transfer) | |
Initializes a new instance of the T:UIKit.UIView class. More... | |
UIView (Context context, IAttributeSet attr, int defStyle) | |
Initializes a new instance of the T:UIKit.UIView class. More... | |
void | SetNeedsDisplay () |
Sets the needs display flag. More... | |
void | SetNeedsLayout () |
Sets the needs layout. More... | |
virtual void | Draw (CGRect rect) |
Draw the specified rect. More... | |
virtual void | LayoutSubviews () |
Lays out any sub view in the control. More... | |
virtual void | TouchesBegan (NSSet touches, UIEvent evt) |
Sent when one or more fingers touches the screen. More... | |
virtual void | TouchesMoved (NSSet touches, UIEvent evt) |
Sent when the ACTile is being dragged More... | |
virtual void | TouchesEnded (NSSet touches, UIEvent evt) |
Send when one or more fingers are lifted from the screen. More... | |
virtual void | AddSubview (UIView view) |
Adds the subview. More... | |
void | InvokeOnMainThread (Action action) |
Invokes the given action on the main UI thread. More... | |
override bool | OnTouchEvent (MotionEvent e) |
Handle the touch event. More... | |
Protected Member Functions | |
override void | OnDraw (Canvas canvas) |
Called when the view needs to draw itself. More... | |
override void | OnLayout (bool changed, nint left, nint top, nint right, nint bottom) |
Called when the view is being laid out. More... | |
Properties | |
CGRect | Frame [get, set] |
Gets or sets the frame. More... | |
CGRect | Bounds [get, set] |
Gets or sets the bounds. More... | |
Canvas | DrawCanvas [get, set] |
Gets or sets the draw canvas. More... | |
ACColor | BackgroundColor = null [get, set] |
Gets or sets the color of the background. More... | |
bool | UserInteractionEnabled [get, set] |
Gets or sets a value indicating whether this T:UIKit.UIView user interaction enabled. More... | |
bool | MultipleTouchEnabled = false [get, set] |
Gets or sets a value indicating whether this T:UIKit.UIView multiple touch enabled. More... | |
CGPoint | LastTouchPoint = false [get, set] |
Gets or sets the last touch point. More... | |
bool | ClipsToBounds = new CGPoint(0, 0) [get, set] |
Gets or sets a value indicating whether this T:UIKit.UIView clips to bounds. More... | |
bool | ExclusiveTouch [get, set] |
Gets or sets a value indicating whether this T:UIKit.UIView exclusive touch. More... | |
bool | CacheViewDrawing = true [get, set] |
Gets or sets a value indicating whether this T:UIKit.UIView cache view drawing to improve redraw performance. More... | |
List< UIView > | Subviews = true [get] |
Gets the subviews. More... | |
Represents a simulated iOS UIView
used to ease the porting of UI code from iOS to Android. The UIView
is a customized version of an Android View
using a RelativeLayout
with features its features mapped to the iOS UIView
names and callin structures. NOTE: Only a small percentage of UIView
has been ported to support Action Components.
UIKit.UIView.UIView | ( | ) |
Initializes a new instance of the T:UIKit.UIView class.
UIKit.UIView.UIView | ( | CGRect | rect | ) |
Initializes a new instance of the T:UIKit.UIView class.
rect | Rect. |
UIKit.UIView.UIView | ( | Context | context | ) |
Initializes a new instance of the T:UIKit.UIView class.
context | Context. |
UIKit.UIView.UIView | ( | Context | context, |
IAttributeSet | attr | ||
) |
Initializes a new instance of the T:UIKit.UIView class.
context | Context. |
attr | Attr. |
UIKit.UIView.UIView | ( | IntPtr | javaReference, |
JniHandleOwnership | transfer | ||
) |
Initializes a new instance of the T:UIKit.UIView class.
javaReference | Java reference. |
transfer | Transfer. |
UIKit.UIView.UIView | ( | Context | context, |
IAttributeSet | attr, | ||
int | defStyle | ||
) |
Initializes a new instance of the T:UIKit.UIView class.
context | Context. |
attr | Attr. |
defStyle | Def style. |
|
virtual |
Adds the subview.
view | View. |
Reimplemented in UIKit.UIScrollView.
|
virtual |
Draw the specified rect.
rect | Rect. |
Reimplemented in ActionComponents.ACTileGroup, ActionComponents.ACTileController, ActionComponents.ACTile, and ActionComponents.ACTileNavigationBar.
void UIKit.UIView.InvokeOnMainThread | ( | Action | action | ) |
Invokes the given action on the main UI thread.
action | Action. |
|
virtual |
Lays out any sub view in the control.
Reimplemented in ActionComponents.ACTileController, ActionComponents.ACTileNavigationBar, and UIKit.UIScrollView.
|
protected |
Called when the view needs to draw itself.
canvas | Canvas. |
|
protected |
Called when the view is being laid out.
changed | If set to true changed. |
left | Left. |
top | Top. |
right | Right. |
bottom | Bottom. |
override bool UIKit.UIView.OnTouchEvent | ( | MotionEvent | e | ) |
Handle the touch event.
true
, if touch event was oned, false
otherwise.e | E. |
void UIKit.UIView.SetNeedsDisplay | ( | ) |
Sets the needs display flag.
void UIKit.UIView.SetNeedsLayout | ( | ) |
Sets the needs layout.
Sent when one or more fingers touches the screen.
touches | Touches. |
evt | Evt. |
Reimplemented in ActionComponents.ACTileGroup, ActionComponents.ACTile, ActionComponents.ACTileController, and UIKit.UIScrollView.
Send when one or more fingers are lifted from the screen.
<Docs>Set containing the touches.</Docs>
touches | Touches. |
evt | Evt. |
Reimplemented in ActionComponents.ACTileGroup, ActionComponents.ACTile, ActionComponents.ACTileController, and UIKit.UIScrollView.
Sent when the ACTile
is being dragged
touches | Touches. |
evt | Evt. |
Reimplemented in ActionComponents.ACTileGroup, ActionComponents.ACTile, ActionComponents.ACTileController, and UIKit.UIScrollView.
|
getset |
Gets or sets the color of the background.
The color of the background.
|
getset |
Gets or sets the bounds.
The bounds.
|
getset |
Gets or sets a value indicating whether this T:UIKit.UIView cache view drawing to improve redraw performance.
true
if cache view drawing; otherwise, false
.
|
getset |
Gets or sets a value indicating whether this T:UIKit.UIView clips to bounds.
true
if clips to bounds; otherwise, false
.
|
getset |
Gets or sets the draw canvas.
The draw canvas.
|
getset |
Gets or sets a value indicating whether this T:UIKit.UIView exclusive touch.
true
if exclusive touch; otherwise, false
.
|
getset |
Gets or sets the frame.
The frame.
|
getset |
Gets or sets the last touch point.
The last touch point.
|
getset |
Gets or sets a value indicating whether this T:UIKit.UIView multiple touch enabled.
true
if multiple touch enabled; otherwise, false
.
|
get |
Gets the subviews.
The subviews.
|
getset |
Gets or sets a value indicating whether this T:UIKit.UIView user interaction enabled.
true
if user interaction enabled; otherwise, false
.