How do I implement pinch zoom handling in a RelativeLayout and also maintain the ability to scroll while zoomed?
This is my xml file:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/custom_list">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/postImg" />
<TextView
android:layout_width="match_parent"
android:layout_height="20dp"
android:text="Date "
android:id="@+id/postDate11" />
<ImageView
android:layout_width="match_parent"
android:layout_height="12dp"
android:src="@drawable/view" />
</LinearLayout>
</ScrollView>
</RelativeLayout>