GestureBitmapView

class GestureBitmapView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : View

View used to display a bitmap allowing gestures to change view zooming, panning and rotation.

Parameters

context

Android context.

attrs

XML layout attributes.

defStyleAttr

style to be used.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

Types

Link copied to clipboard
object Companion

Default values and constants shared by GestureBitmapView instances.

Link copied to clipboard

Indicates the modes the image can be initially scaled.

Link copied to clipboard

Interface to draw on top of the displayed image.

Link copied to clipboard

Interface defining bottom bound reached event.

Link copied to clipboard

Interface defining double tap event.

Link copied to clipboard

Interface defining events raised while an image set through an ImageSource is loaded.

Link copied to clipboard

Interface defining left bound reached event.

Link copied to clipboard

Interface defining maximum scale reached event.

Link copied to clipboard

Interface defining minimum scale reached event.

Link copied to clipboard

Interface defining right bound reached event.

Interface defining an event to notify completion of rotation and translation animation.

Link copied to clipboard

Interface defining an event to notify completion of scale animation.

Link copied to clipboard

Interface defining an event to notify completion of scroll animation.

Link copied to clipboard

Interface defining top bound reached event.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var alpha: Float
Link copied to clipboard
open var animation: Animation?
Link copied to clipboard

Duration of animations to complete rotation, scale and translation expressed in milliseconds.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val autofillHints: Array<out String?>??
Link copied to clipboard
Link copied to clipboard
open val autofillType: Int
Link copied to clipboard
Link copied to clipboard
open var background: Drawable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val baseline: Int
Link copied to clipboard

Gets matrix containing base transformation that was applied to the image (expressed in image pixels) because of current display type.

Link copied to clipboard

Gets base transformation parameters that were applied to the image (expressed in image pixels) because of current display type.

Link copied to clipboard

Gets or sets bitmap. When setting background bitmap using this method, transformation is reset, and the current imageSource, if any, is closed. While an imageSource is set this property is null.

Link copied to clipboard
var bottom: Int
Link copied to clipboard

Listener to handle bottom bound reached events raised by this view.

Link copied to clipboard

Bottom scroll margin expressed in pixels. Defines the amount of bounce when bottom scroll limit is reached.

Link copied to clipboard

Memory budget expressed in bytes for the decoded resolution levels of an image set through an ImageSource. DEFAULT_CACHED_LEVELS_MEMORY_BUDGET (default value) means 4 times the number of pixels of the view, 4 bytes each. Changing it reconfigures the current image.

Link copied to clipboard
Link copied to clipboard
open var clipBounds: Rect?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val display: Display?
Link copied to clipboard

Gets rectangle, expressed in display coordinates, where the image is displayed after applying the full display transformation matrix.

Link copied to clipboard

Gets overall transformation matrix to transform image pixels into display coordinates. This takes into account base and current transformation matrices.

Link copied to clipboard

Gets overall transformation parameters that were applied to transform image pixels into display coordinates. This takes into account base and current transformation parameters.

Link copied to clipboard

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).

Link copied to clipboard

Indicates whether double tap is enabled or not to make a fast jump in scale.

Link copied to clipboard

Listener to handle double tap events raised by this view.

Link copied to clipboard
Link copied to clipboard
open val drawingCache: Bitmap?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val drawingTime: Long
Link copied to clipboard
open var elevation: Float
Link copied to clipboard

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.

Link copied to clipboard
open val explicitStyle: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var focusable: Int
Link copied to clipboard
open var foreground: Drawable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val handler: Handler?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Indicates whether images set through an ImageSource are decoded as hardware bitmaps. Hardware bitmaps are only used when this property is true and the view is hardware accelerated. Changing it reconfigures the current image.

Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
open var id: Int
Link copied to clipboard

Listener to handle events raised while an image set through an ImageSource is loaded.

Link copied to clipboard

Drawer invoked after the image has been drawn, to draw on top of it.

Link copied to clipboard

Gets or sets the source of the image to display. Setting it replaces any previous bitmap or source and resets transformation. The previous source is closed, and so is the one set here when it is replaced later or the view is given another image, so it must not be used by the caller afterwards.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Indicates whether antialiasing is enabled or not.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isDirty: Boolean
Link copied to clipboard
Link copied to clipboard
open var isEnabled: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isFocused: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var isHovered: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isLaidOut: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isOpaque: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var isPressed: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isShown: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var labelFor: Int
Link copied to clipboard
open val layerType: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var left: Int
Link copied to clipboard

Listener to handle left bound reached events raised by this view.

Link copied to clipboard

Left scroll margin expressed in pixels. Defines the amount of bounce when left scroll limit is reached.

Link copied to clipboard
open val matrix: Matrix?
Link copied to clipboard

Gets or sets maximum scale that can be applied ot an image. If the maximum zoom is not defined, it will be computed.

Link copied to clipboard

Margin on maximum scale so that a bounce effect happens when maximum image scale reaches the limit.

Link copied to clipboard

Listener to handle maximum scale reached events raised by this view.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var minimumHeight: Int
Link copied to clipboard
open var minimumWidth: Int
Link copied to clipboard

Gets or sets minimum zoom that can be applied to an image. If the minimum zoom is not defined, it will be computed in terms of current display type and the initial scaling.

Link copied to clipboard

Margin on minimum scale so that a bounce effect happens when minimum image scale reaches the limit.

Link copied to clipboard

Listener to handle minimum scale reached events raised by this view.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var nextFocusUpId: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val overlay: ViewOverlay?
Link copied to clipboard
Link copied to clipboard
open val paddingBottom: Int
Link copied to clipboard
open val paddingEnd: Int
Link copied to clipboard
open val paddingLeft: Int
Link copied to clipboard
open val paddingRight: Int
Link copied to clipboard
open val paddingStart: Int
Link copied to clipboard
open val paddingTop: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var pivotX: Float
Link copied to clipboard
open var pivotY: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Indicates whether images set through an ImageSource are decoded by regions at several resolutions (true), or decoded whole at their full resolution (false). Changing it reconfigures the current image.

Link copied to clipboard
Link copied to clipboard
open val resources: Resources?
Link copied to clipboard
Link copied to clipboard
var right: Int
Link copied to clipboard

Listener to handle right bound reached events raised by this view.

Link copied to clipboard

Right scroll margin expressed in pixels. Defines the amount of bounce when right scroll limit is reached.

Link copied to clipboard
Link copied to clipboard
open val rootView: View?
Link copied to clipboard

Listener to handle events raised by this view when rotate and translate animation completes. This is only notified when rotation and translation are animated back to their initial values together with the scale, which happens when double tap returns the view to its minimum scale. It is not notified when a gesture ends below the minimum scale, because in that case only scale is animated back to the minimum (rotation is kept and translation is brought back within its scroll limits).

Link copied to clipboard
open var rotation: Float
Link copied to clipboard

Indicates whether rotation gesture is enabled or not.

Link copied to clipboard

Indicates whether a rotation gesture keeps rotating the bitmap with decaying speed after the fingers are released (rotation fling), when they were rotating fast enough. The fling starts when the last finger is lifted, provided it is lifted shortly after the rotation ends (within 150 ms), and it replaces any scroll fling made by that same release. This only applies when rotationEnabled is true. If the scale is out of its limits when the gesture ends, the scale correction animation takes precedence and no rotation fling is kept.

Link copied to clipboard
open var rotationX: Float
Link copied to clipboard
open var rotationY: Float
Link copied to clipboard

Listener to handle events raised by this view when scale animation completes.

Link copied to clipboard

Indicates whether scale gesture is enabled or not.

Link copied to clipboard

Jump in scale factor to be applied when doing a double tap gesture.

Link copied to clipboard
open var scaleX: Float
Link copied to clipboard
open var scaleY: Float
Link copied to clipboard

Listener to handle events raised by this view when scroll animation completes.

Link copied to clipboard
Link copied to clipboard
open var scrollBarSize: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Indicates whether scroll gesture is enabled or not.

Link copied to clipboard
Link copied to clipboard

Amount of tension (resistance) applied when the bitmap is dragged beyond its scroll limits and scrollTensionEnabled is true. Each outward finger movement is multiplied by (1 - overscroll / margin)^scrollTension. A value of 1 (default) makes resistance grow linearly with the overscroll. Larger values make resistance grow faster (stiffer feel), values between 0 and 1 make it softer, and 0 removes tension so that the bitmap follows the finger until the hard margin.

Link copied to clipboard

Indicates whether tension is applied when the bitmap is dragged beyond its scroll limits. When true, dragging past the un-margined bound is progressively resisted up to the corresponding scroll margin (rubber-band effect). When false, the bitmap follows the finger until the hard margin is reached.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val solidColor: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var tag: Any?
Link copied to clipboard
open var textAlignment: Int
Link copied to clipboard
open var textDirection: Int
Link copied to clipboard
Link copied to clipboard
var top: Int
Link copied to clipboard

Listener to handle top bound reached events raised by this view.

Link copied to clipboard

Top scroll margin expressed in pixels. Defines the amount of bounce when top scroll limit is reached.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Gets matrix containing current transformation parameters applied to base matrix to display current image. Parameters are expressed in image pixels.

Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var visibility: Int
Link copied to clipboard
val width: Int
Link copied to clipboard
open val windowId: WindowId?
Link copied to clipboard
Link copied to clipboard
open val windowToken: IBinder?
Link copied to clipboard
Link copied to clipboard
open var x: Float
Link copied to clipboard
open var y: Float
Link copied to clipboard
open var z: Float

Functions

Link copied to clipboard
open fun addChildrenForAccessibility(outChildren: ArrayList<View?>?)
Link copied to clipboard
open fun addExtraDataToAccessibilityNodeInfo(info: AccessibilityNodeInfo, extraDataKey: String, arguments: Bundle?)
Link copied to clipboard
open fun addFocusables(views: ArrayList<View?>?, direction: Int)
open fun addFocusables(views: ArrayList<View?>?, direction: Int, focusableMode: Int)
Link copied to clipboard
open fun addKeyboardNavigationClusters(views: Collection<View?>, direction: Int)
Link copied to clipboard
open fun addTouchables(views: ArrayList<View?>?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun autofill(values: SparseArray<AutofillValue?>)
open fun autofill(value: AutofillValue?)
Link copied to clipboard
open fun bringToFront()
Link copied to clipboard
open fun buildDrawingCache(autoScale: Boolean)
Link copied to clipboard
open fun buildLayer()
Link copied to clipboard
open fun callOnClick(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun cancelLongPress()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun canScrollHorizontally(direction: Int): Boolean
Link copied to clipboard
open fun canScrollVertically(direction: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun clearAnimation()
Link copied to clipboard
open fun clearFocus()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun computeScroll()
Link copied to clipboard
open fun computeSystemWindowInsets(in: WindowInsets?, outLocalInsets: Rect?): WindowInsets?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchDisplayHint(hint: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchKeyEvent(event: KeyEvent?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
Link copied to clipboard
open fun dispatchNestedPreFling(velocityX: Float, velocityY: Float): Boolean
Link copied to clipboard
open fun dispatchNestedPreScroll(dx: Int, dy: Int, consumed: IntArray?, offsetInWindow: IntArray?): Boolean
Link copied to clipboard
open fun dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, offsetInWindow: IntArray?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget?>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchUnhandledMove(focused: View?, direction: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun dispatchWindowVisibilityChanged(visibility: Int)
Link copied to clipboard
open fun draw(canvas: Canvas)
Link copied to clipboard
Link copied to clipboard
open fun findFocus(): View?
Link copied to clipboard
fun <T : View?> findViewById(id: Int): T?
Link copied to clipboard
open fun findViewsWithText(outViews: ArrayList<View?>?, searched: CharSequence?, flags: Int)
Link copied to clipboard
fun <T : View?> findViewWithTag(tag: Any?): T?
Link copied to clipboard
open fun focusSearch(direction: Int): View?
Link copied to clipboard
open fun forceHasOverlappingRendering(hasOverlappingRendering: Boolean)
Link copied to clipboard
open fun forceLayout()
Link copied to clipboard
Link copied to clipboard
open fun generateDisplayHash(hashAlgorithm: String, bounds: Rect?, executor: Executor, callback: DisplayHashResultCallback)
Link copied to clipboard
Link copied to clipboard
open fun getDrawingRect(outRect: Rect?)
Link copied to clipboard
open fun getFocusables(direction: Int): ArrayList<View?>?
Link copied to clipboard
open fun getFocusedRect(r: Rect?)
Link copied to clipboard
open fun getGlobalVisibleRect(r: Rect?, globalOffset: Point?): Boolean
Link copied to clipboard
open fun getHitRect(outRect: Rect?)
Link copied to clipboard
Link copied to clipboard
open fun getLocationInSurface(location: IntArray)
Link copied to clipboard
open fun getLocationInWindow(outLocation: IntArray?)
Link copied to clipboard
open fun getLocationOnScreen(outLocation: IntArray?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun hasFocus(): Boolean
Link copied to clipboard
open fun hasFocusable(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun invalidate()
open fun invalidate(dirty: Rect?)
open fun invalidate(l: Int, t: Int, r: Int, b: Int)
Link copied to clipboard
open fun invalidateDrawable(drawable: Drawable)
Link copied to clipboard
fun invalidateImage(region: Rect? = null)

Notifies that the contents of the displayed image have changed, so that it is drawn again. When the image comes from an ImageSource its decoded levels are refreshed in background. When the image is a bitmap, the view is just invalidated. Nothing is done without image.

Link copied to clipboard
Link copied to clipboard
open fun isVisibleToUserForAutofill(virtualId: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun keyboardNavigationClusterSearch(currentCluster: View?, direction: Int): View?
Link copied to clipboard
open fun layout(l: Int, t: Int, r: Int, b: Int)
Link copied to clipboard
fun mapViewToImage(x: Float, y: Float, result: PointF): Boolean

Maps a point expressed in view coordinates into upright image pixels.

Link copied to clipboard
fun measure(widthMeasureSpec: Int, heightMeasureSpec: Int)
Link copied to clipboard
open fun offsetLeftAndRight(offset: Int)
Link copied to clipboard
open fun offsetTopAndBottom(offset: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onCreateViewTranslationRequest(supportedFormats: IntArray, requestsCollector: Consumer<ViewTranslationRequest?>)
Link copied to clipboard
open fun onCreateVirtualViewTranslationRequests(virtualIds: LongArray, supportedFormats: IntArray, requestsCollector: Consumer<ViewTranslationRequest?>)
Link copied to clipboard
open fun onDragEvent(event: DragEvent?): Boolean
Link copied to clipboard
open fun onDrawForeground(canvas: Canvas)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onHoverChanged(hovered: Boolean)
Link copied to clipboard
open fun onHoverEvent(event: MotionEvent?): Boolean
Link copied to clipboard
open fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyLongPress(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyMultiple(keyCode: Int, repeatCount: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyPreIme(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyShortcut(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onKeyUp(keyCode: Int, event: KeyEvent?): Boolean
Link copied to clipboard
open fun onPointerCaptureChange(hasCapture: Boolean)
Link copied to clipboard
open fun onProvideAutofillStructure(structure: ViewStructure?, flags: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onProvideStructure(structure: ViewStructure?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onResolvePointerIcon(event: MotionEvent?, pointerIndex: Int): PointerIcon?
Link copied to clipboard
open fun onRtlPropertiesChanged(layoutDirection: Int)
Link copied to clipboard
open fun onScreenStateChanged(screenState: Int)
Link copied to clipboard
open fun onScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget?>)
Link copied to clipboard
Link copied to clipboard
open override fun onTouchEvent(event: MotionEvent?): Boolean

Called when a touch event occurs on the view.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onVisibilityAggregated(isVisible: Boolean)

Called when the visibility of the view, taking its ancestors and window into account, changes. When it becomes visible the resolution needed by the displayed region is requested again, since detail is dropped when the system asks to free memory while in background.

Link copied to clipboard
open fun onWindowFocusChanged(hasWindowFocus: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun performAccessibilityAction(action: Int, arguments: Bundle?): Boolean
Link copied to clipboard
open fun performClick(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun performHapticFeedback(feedbackConstant: Int): Boolean
open fun performHapticFeedback(feedbackConstant: Int, flags: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun playSoundEffect(soundConstant: Int)
Link copied to clipboard
open fun post(action: Runnable?): Boolean
Link copied to clipboard
open fun postDelayed(action: Runnable?, delayMillis: Long): Boolean
Link copied to clipboard
open fun postInvalidate()
open fun postInvalidate(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun postInvalidateDelayed(delayMilliseconds: Long)
open fun postInvalidateDelayed(delayMilliseconds: Long, left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun postInvalidateOnAnimation(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun postOnAnimation(action: Runnable?)
Link copied to clipboard
open fun postOnAnimationDelayed(action: Runnable?, delayMillis: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun removeCallbacks(action: Runnable?): Boolean
Link copied to clipboard
open fun reportAppJankStats(appJankStats: AppJankStats)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun requestFocus(direction: Int): Boolean
open fun requestFocus(direction: Int, previouslyFocusedRect: Rect?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun requestLayout()
Link copied to clipboard
Link copied to clipboard
open fun requestRectangleOnScreen(rectangle: Rect?): Boolean
open fun requestRectangleOnScreen(rectangle: Rect?, immediate: Boolean): Boolean
Link copied to clipboard
fun <T : View?> requireViewById(id: Int): T & Any
Link copied to clipboard
open fun resetPivot()
Link copied to clipboard

Resets matrix containing changes on image (scale and translation) and forces view redraw.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun saveAttributeDataForStyleable(context: Context, styleable: IntArray, attrs: AttributeSet?, t: TypedArray, defStyleAttr: Int, defStyleRes: Int)
Link copied to clipboard
open fun saveHierarchyState(container: SparseArray<Parcelable?>?)
Link copied to clipboard
open fun scheduleDrawable(who: Drawable, what: Runnable, when: Long)
Link copied to clipboard
open fun scrollBy(x: Int, y: Int)
Link copied to clipboard
open fun scrollTo(x: Int, y: Int)
Link copied to clipboard
open fun sendAccessibilityEvent(eventType: Int)
Link copied to clipboard
open fun setAccessibilityDataSensitive(accessibilityDataSensitive: Int)
Link copied to clipboard
open fun setAllowClickWhenDisabled(clickableWhenDisabled: Boolean)
Link copied to clipboard
open fun setAllowedHandwritingDelegatePackage(allowedPackageName: String?)
Link copied to clipboard
open fun setAllowedHandwritingDelegatorPackage(allowedPackageName: String?)
Link copied to clipboard
open fun setAutofillHints(vararg autofillHints: String?)
Link copied to clipboard
open fun setBackgroundColor(color: Int)
Link copied to clipboard
open fun setBackgroundDrawable(background: Drawable?)
Link copied to clipboard
open fun setBackgroundResource(resid: Int)
Link copied to clipboard
fun setBitmap(bitmap: Bitmap?, resetMatrices: Boolean = true)

Sets bitmap.

Link copied to clipboard
fun setDrawable(drawable: Drawable?)

Sets bitmap of this view using provided drawable.

Link copied to clipboard
open fun setFadingEdgeLength(length: Int)
Link copied to clipboard
open fun setHandwritingBoundsOffsets(offsetLeft: Float, offsetTop: Float, offsetRight: Float, offsetBottom: Float)
Link copied to clipboard
open fun setHasTransientState(hasTransientState: Boolean)
Link copied to clipboard
fun setImageFile(file: File, resetMatrices: Boolean = true)

Sets the image to display from a file, decoded by regions.

Link copied to clipboard
fun setImageResource(resId: Int, resetMatrices: Boolean = true)

Sets the image to display from a raster drawable resource, decoded by regions.

Link copied to clipboard
fun setImageSource(source: ImageSource?, resetMatrices: Boolean = true)

Sets the source of the image to display, which is decoded by regions at the resolution required by the display transformation. Any previous bitmap is recycled and any previous source is closed. The provided source is owned by this view from now on: it is closed when it is replaced by another image or source, and it must not be closed by the caller. Setting the source that is already set does nothing.

Link copied to clipboard
fun setImageUri(uri: Uri, resetMatrices: Boolean = true)

Sets the image to display from a content URI, decoded by regions.

Link copied to clipboard
open fun setIsCredential(isCredential: Boolean)
Link copied to clipboard
open fun setIsHandwritingDelegate(isHandwritingDelegate: Boolean)
Link copied to clipboard
open fun setLayerPaint(paint: Paint?)
Link copied to clipboard
open fun setLayerType(layerType: Int, paint: Paint?)
Link copied to clipboard
fun setLeftTopRightBottom(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setOnReceiveContentListener(mimeTypes: Array<out String?>??, listener: OnReceiveContentListener?)
Link copied to clipboard
Link copied to clipboard
open fun setPadding(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int)
Link copied to clipboard
open fun setRenderEffect(renderEffect: RenderEffect?)
Link copied to clipboard
open fun setTransitionVisibility(visibility: Int)
Link copied to clipboard
open fun setWillNotCacheDrawing(willNotCacheDrawing: Boolean)
Link copied to clipboard
open fun setWillNotDraw(willNotDraw: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun startAnimation(animation: Animation?)
Link copied to clipboard
fun startDrag(data: ClipData?, shadowBuilder: View.DragShadowBuilder?, myLocalState: Any?, flags: Int): Boolean
Link copied to clipboard
fun startDragAndDrop(data: ClipData?, shadowBuilder: View.DragShadowBuilder?, myLocalState: Any?, flags: Int): Boolean
Link copied to clipboard
open fun startNestedScroll(axes: Int): Boolean
Link copied to clipboard
open fun stopNestedScroll()
Link copied to clipboard
Link copied to clipboard
open fun transformMatrixToLocal(matrix: Matrix)
Link copied to clipboard
open fun unscheduleDrawable(who: Drawable, what: Runnable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun willNotDraw(): Boolean