Android

CameraView

A view that shows what the camera sees.

Supports orientation changes, fits the preview image into the available view space and works with Gingerbread (minSDK 9) or better.

• 533 LINES • Java • Unlicense

ScalingImageView

An ImageView that transforms its drawable according to touch input.

Supports rotated images and keeps transformation when you exchange the image for another one with a different size.

• 482 LINES • Java • Unlicense

SwipeImageView

An ImageView that can be used to swipe between images and supports pinch/zoom gestures to explore the current image.

Think of Google Photos.

• 637 LINES • Java • Unlicense