Skip to content

Instantly share code, notes, and snippets.

View AhmedMousa7's full-sized avatar

Ahmed Moussa AhmedMousa7

View GitHub Profile
AhmedMousa7 /
Last active April 22, 2019 10:21
Pinch-zoomable Android frame layout with functionality to move child view inside parent boundaries
* Adapted from anorth at
* by Ahmed Mousa on Feb 14 - 2018.
import android.content.Context;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;