open class ZoomLayout : FrameLayout, OnGlobalLayoutListener, ZoomApi
Uses ZoomEngine to allow zooming and pan events onto a view hierarchy. The hierarchy must be contained in a single view, added to this layout (like what you do with a ScrollView).
If the hierarchy has clickable children that should react to touch events, you are required to call setHasClickableChildren or use the attribute. This is off by default because it is more expensive in terms of performance.
Currently padding to this view / margins to the child view are NOT supported.
ZoomLayout(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) |
val engine: ZoomEngine |
open fun addView(child: View, index: Int, params: LayoutParams): Unit |
|
open fun computeHorizontalScrollOffset(): Int |
|
open fun computeHorizontalScrollRange(): Int |
|
open fun computeVerticalScrollOffset(): Int |
|
open fun computeVerticalScrollRange(): Int |
|
open fun drawChild(canvas: Canvas, child: View, drawingTime: Long): Boolean |
|
open fun onAttachedToWindow(): Unit |
|
open fun onDetachedFromWindow(): Unit |
|
open fun onGlobalLayout(): Unit |
|
open fun onInterceptTouchEvent(ev: MotionEvent): Boolean |
|
open fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int): Unit |
|
open fun onTouchEvent(ev: MotionEvent): Boolean |
|
fun setHasClickableChildren(hasClickableChildren: Boolean): Unit
Whether the view hierarchy inside has (or will have) clickable children. This is false by default. |