I noticed that for scrolling in both directions I need to use a regular (vertical) and horizontal ScrollView. Please tell me if there is another way.
<ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/scrollView" > <HorizontalScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/horizontalScrollView"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/imageView3" android:src="@drawable/big_map"/> </HorizontalScrollView> </ScrollView>
He began to display the form in the upper left corner of the image. If I tried to use android: layout_gravity = "center", then I got the white part on the right or bottom. Therefore, centering does not work for me.
Option 2: Use a WebView control and load it with an onCreate image.
source share