Gesture Bitmap View
View used to display a bitmap allowing gestures to change view zooming, panning and rotation.
Parameters
Android context.
XML layout attributes.
style to be used.
Types
Indicates the modes the image can be initially scaled.
Interface defining bottom bound reached event.
Interface defining double tap event.
Interface defining left bound reached event.
Interface defining maximum scale reached event.
Interface defining minimum scale reached event.
Interface defining right bound reached event.
Interface defining an event to notify completion of rotation and translation animation.
Interface defining an event to notify completion of scale animation.
Interface defining an event to notify completion of scroll animation.
Interface defining top bound reached event.
Properties
Duration of animations to complete rotation, scale and translation expressed in milliseconds.
Gets matrix containing base transformation that was applied to the bitmap because of current display type.
Gets base transformation parameters that were applied to the bitmap because of current display type.
Listener to handle bottom bound reached events raised by this view.
Bottom scroll margin expressed in pixels. Defines the amount of bounce when bottom scroll limit is reached.
Gets rectangle where bitmap is displayed after applying the full display transformation matrix.
Gets overall transformation matrix to transform bitmap coordinates into display coordinates. This takes into account base and current transformation matrices.
Gets overall transformation parameters that were applied to transform bitmap coordinates into display coordinates. This takes into account base and current transformation parameters.
Gets or sets display type to use when image is initially displayed. When display type is changed, display matrix is preserved (adjusting scale and scroll as needed).
Indicates whether double tap is enabled or not to make a fast jump in scale.
Listener to handle double tap events raised by this view.
Indicates whether scroll using two fingers is exclusive. When this property is true, and both scrollEnabled and twoFingerScrollEnabled are also true, then scroll is disabled with one finger and can only be done with two fingers. If false and both scrollEnabled and twoFingerScrollEnabled, then scroll can be made with both one or two fingers.
Indicates whether antialiasing is enabled or not.
Listener to handle left bound reached events raised by this view.
Left scroll margin expressed in pixels. Defines the amount of bounce when left scroll limit is reached.
Margin on maximum scale so that a bounce effect happens when maximum image scale reaches the limit.
Listener to handle maximum scale reached events raised by this view.
Margin on minimum scale so that a bounce effect happens when minimum image scale reaches the limit.
Listener to handle minimum scale reached events raised by this view.
Listener to handle right bound reached events raised by this view.
Right scroll margin expressed in pixels. Defines the amount of bounce when right scroll limit is reached.
Listener to handle events raised by this view when rotate and translate animation completes.
Indicates whether rotation gesture is enabled or not.
Listener to handle events raised by this view when scale animation completes.
Indicates whether scale gesture is enabled or not.
Jump in scale factor to be applied when doing a double tap gesture.
Listener to handle events raised by this view when scroll animation completes.
Indicates whether scroll gesture is enabled or not.
Listener to handle top bound reached events raised by this view.
Top scroll margin expressed in pixels. Defines the amount of bounce when top scroll limit is reached.
Gets matrix containing current transformation parameters applied to base matrix to display current image.
Gets or sets current transformation parameters used to display the image respect the base transformation applied by current display type. When setting transformation parameters, no limits are imposed on scale or translation to ensure the bitmap remains visible within the view.
Indicates whether scroll with two fingers is enabled or not. When both scrollEnabled and this property are enabled, user can scroll the bitmap with two fingers.
Functions
Called when a touch event occurs on the view.
Resets matrix containing changes on image (scale and translation) and forces view redraw.
Sets bitmap of this view using provided drawable intrinsic size.