INNER CODE UNIT · Kotlin

viewHeight

burhanrashid52/PhotoEditor · app/src/androidTest/java/com/burhanrashid52/photoediting/PinchTestHelper.kt:77

        val viewHeight = view.height * view.scaleY
        val viewWidth = view.width * view.scaleX
        return Point(
            (locationOnScreen[0] + viewWidth / 2).toInt(),
            (locationOnScreen[1] + viewHeight / 2).toInt()
        )
    }

    private fun performPinch(
        uiController: UiController,
        startPoint1: Point,
        startPoint2: Point,
        endPoint1: Point,
        endPoint2: Point
    ) {
        val duration = 500
        val eventMinInterval: Long = 10
        val startTime = SystemClock.uptimeMillis()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…