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;
problem this; when pinch zoom in relativelayout zooms normally. , after making zoom when move layout, moves endless.
i want limit move event borderline. how can it?
Comments
Post a Comment