burhanrashid52 / PhotoEditor

A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
MIT License
4.13k stars 991 forks source link

I can't add custom text in photoEditor ! please help #348

Closed fsfaysalcse closed 3 years ago

fsfaysalcse commented 3 years ago

My code is below

       val mPhotoEditor = PhotoEditor.Builder(this, binding.photoEditorView)
            .setPinchTextScalable(true)
            .build()

        var text = TextView(this)
        text.text = "Faysal Ahmed Shakil"
        text.setTextColor(Color.RED)

        val textStyleBuilder = TextStyleBuilder().apply {
            applyStyle(text)
        }

        mPhotoEditor.addText("Hello Faysal",textStyleBuilder)
burhanrashid52 commented 3 years ago

Any error or stacktrace ?

fsfaysalcse commented 3 years ago

Any error or stacktrace ?

Nope ! Text style not applied . Like i set text color as red but still showing black . Actually i want to add some extra attributes like text outline , shadow effect etc etc ..

burhanrashid52 commented 3 years ago

I would be hard to track the issue this way. I don't see anything wrong in the code it should work as expected.

fsfaysalcse commented 3 years ago

Can you provide me a demo code ?

burhanrashid52 commented 3 years ago

EditImageActivity is the sample code. Check this.

fsfaysalcse commented 3 years ago

I want to add text outline how can i do that ?

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days.

github-actions[bot] commented 3 years ago

This issue was closed because it has been stalled for 5 days with no activity.