Landscape mode does not work

0

I have already done the layout for portrait mode and created the layout-land folder and pasted all the xml files I already have to be able to adjust. From what I read, just do this but it is not working, I removed several components from one of the test screens and it remains the same in both modes.

landscape xml:

<?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="match_parent">

    <LinearLayout
        xmlns:tools="http://schemas.android.com/tools"
        style="@style/estiloTela"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:weightSum="1">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="AAAAAAAAAAA"
            android:textColor="@color/primary_text"
            android:textSize="15dp" />

</LinearLayout>
</ScrollView>
    
asked by anonymous 28.09.2016 / 00:19

1 answer

1

Make sure your resource directory structure looks like this:

If negative, follow these steps:

1) On the layout directory click on: New - > Layout resource file

2) In the File Name dialog box place the same name as the source xml layout

3) In the list of Available qualifiers select Orientation and add it in the list on the right.

4) Select the orientation and click OK.

5) Copy your original layout to the new one and modify.

    
28.09.2016 / 00:36