java - Android ZoomableRelativeLayout issue -


i'm using this class add zoomable relative layout in application. , layout this.

<com.example.zoomablerelativelayoutexample.zoomablerelativelayout     android:layout_width="500dp"     android:layout_height="500dp"     android:layout_alignparenttop="true"     android:background="#000" >      <imageview         android:id="@+id/imageview1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_alignparentbottom="true"         android:layout_marginbottom="124dp"         android:layout_marginleft="64dp"         android:layout_torightof="@+id/imagebutton1"         android:src="@drawable/ic_launcher" />      <imagebutton         android:id="@+id/imagebutton1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_alignparentright="true"         android:layout_alignparenttop="true"         android:layout_marginright="52dp"         android:layout_margintop="131dp"         android:src="@drawable/ic_launcher" />  </com.example.zoomablerelativelayoutexample.zoomablerelativelayout> 

here screen shot of main xml;

enter image description here

problem this; when pinch zoom in relativelayout zooms normally. , after making zoom when move layout, moves endless.

enter image description here enter image description here

i want limit move event borderline. how can it?


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -