DrawView
DrawView copied to clipboard
Eraser mode clears background
Hi, Thanks for your great library. It's awsome. However i have an isssue that is when i change to eraser mode, it also clears background image. How can i prevent this? Thanks.
Hi @thanhpd56 !!!
God point! I can add a configuration to exclude background from eraser, wait for the update please
Hi @ByoxCode , Thanks for your response. Is there any plan for the next release?
Sure, I'm working in a major update. Please wait for the next release. I'm planning changes for camera option, add more shapes, and in the snapshot branch I already added a improvement to load a background from remote image (url)
Amazing! Thanks.
On Fri, Jul 13, 2018, 07:43 Oscar Gilberto Medina Cruz < [email protected]> wrote:
Sure, I'm working in a major update. Please wait for the next release. I'm planning changes for camera option, add more shapes, and in the snapshot branch I already added a improvement to load a background from remote image (url)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ByoxCode/DrawView/issues/25#issuecomment-404692120, or mute the thread https://github.com/notifications/unsubscribe-auth/ADnn0kQ8z0i0pFVR3g1OgFIdB8_sD2rNks5uF-0igaJpZM4UoDvF .
Hey @thanhpd56!! I released a snapshot version for new changes, you can see how to implement it in README.md
Woah, great work! I will try it, and tell you the result soon.
Hi @ByoxCode, I try to import new snapshot version but it failed.
maven { url "https://raw.githubusercontent.com/ByoxCode/DrawView/snapshot/aar/snapshots/" } `` implementation 'com.byox.drawview:drawview:1.3.1-SNAPSHOT'
Unable to resolve dependency for ':app@prodFullDebug/compileClasspath': Could not resolve com.byox.drawview:drawview:1.3.1-SNAPSHOT.
What should i do?
Oh, It should be 1.0.0-SNAPSHOT. By the way, you changed api alot. @@
@ByoxCode Now it's working well. However, when i save image the background image is gone, only draw path.
@thanhpd56 really? Well I check this again, thanks!
@ByoxCode One more problem, that mentioned from this. It still happens in this version. You can produce this issue by open drawview, then press home so that application turns to background => Crash. The solution is creating new class extends original graphic Matric and also implements Serializable. Thanks, wait for new update.
This line
mDrawView.setBackgroundImage(bitmap,BackgroundType.BITMAP,BackgroundScale.FIT_START);
Change to :
Drawable drawable = new BitmapDrawable(getResources(), bitmap);
mDrawView.setBackground(drawable);
But problem is , when click save, background not save :( any help @ByoxCode @thanhpd56