Is it possible to use an ImageView as parent? I want to put a few TextViews on an ImageView and when the user zooms on ImageView, I want TextViews to be zoomed too!
Note: I made a zoom-able ImageView but i can't make a zoom-able RelativeLayout...
EDIT:
my xml:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent">
<nikdan.m.metro.ZoomableImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imgMap"
android:layout_gravity="center" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Hello"
android:id="@+id/text"
android:layout_gravity="center"
android:textColor="#ff0000" />
</FrameLayout>