In Activity I want to consider a picture, significantly larger than the screen size. I use HorizontalScrollView , enclosed in ScrollView . Here is the markup:
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:scrollbars="horizontal|vertical" android:fadeScrollbars="false"> <HorizontalScrollView android:layout_width="wrap_content" android:layout_height="match_parent" android:scrollbars="horizontal" android:scrollbarStyle="outsideOverlay" android:fadeScrollbars="false"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/main_image" android:background="@drawable/paporotnik"/> </HorizontalScrollView> </ScrollView> As a result, the right Scrollbar , which is responsible for vertical scrolling, is always visible, and the lower one, which is responsible for horizontal scrolling, only when I catch up to the bottom of the picture. That is, the inner Scrollbar is glued to the bottom of the picture itself.
I wish the bottom Scrollbar also always visible, that is, as if it were attached to the bottom of the window, and not the picture. How to achieve this?