INNER CODE UNIT · Kotlin

loadCropImageView

SimpleMobileTools/Simple-Gallery · app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt:251

    private fun loadCropImageView() {
        binding.defaultImageView.beGone()
        binding.editorDrawCanvas.beGone()
        binding.cropImageView.apply {
            beVisible()
            setOnCropImageCompleteListener(this@EditActivity)
            setImageUriAsync(uri)
            guidelines = CropImageView.Guidelines.ON

            if (isCropIntent && shouldCropSquare()) {
                currAspectRatio = ASPECT_RATIO_ONE_ONE
                setFixedAspectRatio(true)
                binding.bottomEditorCropRotateActions.bottomAspectRatio.beGone()
            }
        }
    }

    private fun loadDrawCanvas() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…