INNER CODE UNIT · Kotlin

viewWidth

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

        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()
        var eventTime = startTime

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…