2

In my application, I would like to add zoom functionality to my views. Like in an activity I am displaying LinearLayout etc. But as of now what I know a view can be zoomed in only in WebView and not in normal view. After all what I want is to zoom in/zoom out feature similar to WebView in my normal views.

Thanks in advance.

AndroDev
  • 3,236
  • 8
  • 35
  • 49

1 Answers1

1

Construct a Custom Layout extending Liner Layout or any other. Override its onDraw function and and provide zooming functionality manually. There are many example at SO for zooming. You can follow them.. This might help:

android pinch zoom

How to apply pinch zoom on Gallery in android?

Community
  • 1
  • 1
Awais Tariq
  • 7,724
  • 5
  • 31
  • 54