0

On Android, I have .png images added as a resource in my /res/ folder.

Question: I want to display an image from the resource filling a screen, but allowing the user to pinch-to-zoom it. What UI component do I use? An ImageView? A WebView?

user934779
  • 303
  • 1
  • 8
  • 14

2 Answers2

0

Put your image in the assets folder, and point the WebView to it. The WebView will do everything for you, in terms of pinch to zoom functionality.

Raghav Sood
  • 81,899
  • 22
  • 187
  • 195