Closed red-game-dev closed 2 years ago
This is interesting. I've not tested this with cross-platform plugins. You are saving addImage works. So I did not understand the exact issue. What do you mean by setting it properly ? It will work only when it is set properly.
Hi @burhanrashid52 !
Yes, indeed it is, in fact it would be helpful, since it would possible that we could as well later release it as plugin based from this plugin as native (would include as well iOS with some other plugin, I believe). But for the time being, which just need it for ourselves, as there is no need for separating the logic.
What I'm trying to achieve in here is to have the following UI in the image below, how do I call that view from? From what I read it seems that this UI is under the class of ja.burhanrashid52.photoeditor.PhotoEditorView
, yet wasn't able to invoke it to make it show, even by inject the view into the native elements (findViewById
or Frame and add the View).
Are there any methods that can allow me to invoke this, something like .show(...)
, .hide(...)
? The console.dir
section part doesn't show any methods that I could possibly utilize in this case seems. Which is why, I was asking if there is any demo that I could possibly take an idea from, how I can invoke and use the plugin properly :)
Looking forward to hearing from you.
Best regards, Cheers
The only sample demo I've for now is EditImageActivity
in app
module. If you are inserting PhotoEditorView
in native using js then make sure it has some height and width define or have match_parent
.
I think this is a misunderstanding, I also had the same problem. I thought that just by building the PhotoEditor will be good to go but it turns out that you have to implement all of the functions, you can see this in the example app called Photo Editor, clone the project and you´ll see.
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.
This issue was closed because it has been stalled for 5 days with no activity.
Describe the bug Trying to invoke
ja.burhanrashid52.photoeditor.PhotoEditor.Builder
but nothing is being shown, yet other methods works and shows something, such asaddImage
. How do I properly set it up?I tried as well through new java app for testing, same result, while using concurrent version.
Further information where i am using this
This is not pure Java, I'm using Nativescript, which allows us to use native java & swift on JS (https://nativescript.org/), mostly same as Flutter, React-Native, Ionic, Cordova. In this case doesn't require any bridges, so we can just add the plugin on Gradle, invoke it and start work with it, although a proper typing's is good to be in place for better readability and intellisense. Through the reproduce you may see code quite familiar to java, but instead is calling the full namepsace usually.
You don't need really to invoke this within the an NS app, if I've a proper demo to work with, this could be very helpful. As well, with such amazing plugin, it would be nice later to see it being used in flutter, react-native, nativescript and others.
To Reproduce
Add the code in NS main app.vue component
Console.dir log
Expected behavior The edit layout to show on the view, with the required tools upon invoking the class ja.burhanrashid52.photoeditor.PhotoEditor.Builder and built.
Screenshots/Video/GIFs
Smartphone Info:
OS: 9
Am I doing something wrong? Perhaps I do need invoke something else after? I've checked the docs and went through it step by step. A demo of how to use it would be very helpful, can be in Java as well!
Looking forward to hearing from you.
Best regards, Cheers