Scrollview does not scroll the screen in Landscape mode

Asked

Viewed 79 times

0

Hello,

Scrollview does not roll the screen in Landscape mode. Portrait mode works normally.

I’ve done xml with and without android:scrollbars="vertical".


follows the xml code:

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:scrollbars="vertical"
        android:background="@color/branco"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        >

        <LinearLayout
            android:id="@+id/tblMain"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:stretchColumns="2">...

There are more elements, but the code above should give you an idea of the configuration:

The image of the program is below:

Tela

You can’t see it in the image capture, but I’m trying to scroll the image with the mouse in the emulator. The scroll bar does not appear and the screen does not scroll down. I put the same text on top and even put a different color to differentiate one text from the other and see that the text is cut.

1 answer

0


Solved, At some point, I accidentally clicked on Create Landscape Variation. That’s why Landscape wasn’t getting it "meet" with the screen pixels of the emulator and assumed that the screen had not been turned. I went to the folder of the app, by Windows Explorer, and deleted all the folders that contained the "Activity" related to Landscape created and left only the main "Activity". Now it’s normal.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.