CanHub / Android-Image-Cropper

Image Cropping Library for Android, optimised for Camera / Gallery.
https://canhub.github.io/
Apache License 2.0
1.17k stars 240 forks source link

How can I show the title bar? #588

Closed mobilewhj closed 11 months ago

mobilewhj commented 11 months ago

version:4.5.0

private val mAlbumLauncher =
    registerForActivityResult(ActivityResultContracts.PickVisualMedia()) { uri ->
        uri?. let {
            mCropLaunch.launch(
                CropImageContractOptions(
                    uri = it,
                    cropImageOptions = CropImageOptions(
                        activityTitle = "裁剪",
                        toolbarColor = getColor(R.color.white),
                        toolbarTitleColor = getColor(R.color.subtitle),
                        toolbarBackButtonColor = getColor(R.color.subtitle)
                    )
                )
            )
        }
    }

I see that the demo is passing the empty construction method, but when I use the empty construction, it is consistent with my current code use, and the effect is blank。

mobilewhj commented 11 months ago

already solved,add theme in xml。