Pinch Zoom in Android
Asked Answered
L

2

2

I have a layout, which include some TextViews and ImageViews. Haven't they created an easy way to include pinch zoom on an simple ScrollView/LinearLayout? I have watched some codes, but they work only on ImageViews.

Recently I found setDisplayZoomControls(boolean).

Is it possible to make this work on a layout with TextViews? If no, maybe somebody provides a code, which will zoom in/out my layout with pinch zoom.

Thanks.

Linseylinseywoolsey answered 1/3, 2012 at 16:1 Comment(0)
C
2

Try using android-pinch, it is supposed to work on web-views as well http://code.google.com/p/android-pinch/

Cohbath answered 1/3, 2012 at 16:12 Comment(0)
S
1

Also,

Take a look at this: http://code.google.com/p/android-multitouch-controller/

It will enable you to add multi touch handlers to almost any widget.

Note that due to some hardware problems on older devices, you might not always get the right result.

Sagittal answered 2/3, 2012 at 8:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.