Comments (4)
Sorry to hear that, I will provide a solution. Thanks for using it 👍
from drawableview.
Ok this is a definite bug that I've just discovered, the issue with the scratch mentioned above is due to trying to draw while dragging your finger horizontally. There is no way to start drawing if you drag your finger horizontally on the view, it always cuts off and you have to try again and it will cut off again. Whenever I try to draw while dragging finger vertically or diagonally, works every time.
I've tried this on Nexus 5, glad it wasn't some random bug or something untrackable
from drawableview.
@Odaym Tell me what configuration are you using please, I can't reproduce it. If you set 0 and 0 as min/max on zoom the issue is addressed but is ok, the view is scaling to 0 so if you don't want zoom, you need to setup with 1/1. I will fix later. But what I can't reproduce is setting 1/3 my draw after zoom in/out is still on the screen and I can continue drawing. Please send me the configuration. mine was:
config.setStrokeColor(getResources().getColor(android.R.color.black));
config.setStrokeWidth(20.0f);
config.setMinZoom(1.0f);
config.setMaxZoom(3.0f);
config.setCanvasHeight(4000);
config.setCanvasWidth(4000);
I have tried Nexus 7 (last) and Nexus 6.
Thanks
from drawableview.
You are definitely correct about setting Max/Min Zoom levels to be 1 and 1 respectively, this stops any zooming and resolves the problem. Thanks for clearing that up.
I will close this and open the horizontal drawing issue as a separate issue.
from drawableview.
Related Issues (20)
- supporting adding text
- Thanks guy!
- setBackgroundColor does not have an effect on the obtained bitmap HOT 2
- [SOLVED] Black Image in saved bitmap HOT 3
- appear android.os.BadParcelableException error HOT 2
- Saving Background bitmap with drawn paint causes the app to crash? HOT 1
- Maven Central artifact is dirty
- Drawableview no track
- Can we set a bitmap as the canvas background? HOT 1
- :( HOT 1
- Run very very slow if you use a background
- Disable Touch Listener
- Referenced class is missing
- How to set the color that has been drawn?
- what is the Lib version and the mvn central badge HOT 1
- ERROR: Failed to resolve: me.panavtec:drawableview:0.6.0
- Can't draw if widget are inside NestedScrollView
- Parcelable protocol requires that the class implements Parcelable
- Ability to center canvas on w/h of the view HOT 7
- Set a color for background and canvas border
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drawableview.