enter image description hereI have a custom view and the user can draw rectangles(I used canvas). I would make the size of custom view bigger than the size of the screen. So, the user can draw not only in the size of screen. I tried ScrollView and NestedScrollView but they are not helpful to solve my problem.
Asked
Active
Viewed 363 times
0
-
What was wrong with ScrollView and NestedScrollView? – 1615903 Mar 11 '16 at 10:07
-
just use `View#scrollBy` / `View#scrollTo` methods – pskink Mar 11 '16 at 10:57
-
How use scrollBy and scrollTo? – etudiante Mar 11 '16 at 11:02
-
with a `GestureDetector` for example – pskink Mar 11 '16 at 11:16
-
something like [this](http://pastebin.com/DE5PPmRc) – pskink Mar 12 '16 at 07:15
1 Answers
0
As far as I could understand from this question is you want to make a canvas where someone can draw some pictures. So you need a bigger canvas to that user can drag the positions to left-right, up and down. If I understood correctly, then I would say, you might think of a different work-around instead of looking for a view bigger than the screen size.
You can think of an simple ImageView
which will be auto zoomed-in and if the user clicks twice it'll zoom-out. The user can drag the positions of the ImageView whenever he wants.
Here's an SO answer about how you can implement the zoom in and out in an ImageView
. Hope this will help to solve your problem.

Community
- 1
- 1

Reaz Murshed
- 23,691
- 13
- 78
- 98