0
I already made the layout for the 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 it but it’s not working, I removed several components from one of the screens to test and it remains the same in both modes.
xml of Landscape:
<?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>
It has 2 xmls files for each screen, but it did not appear "port" on the xml Portrait side, only the land appeared. Have some problem?
– Éowyn
No, it’s okay, the impression is you typed something wrong. Try to create any other layout with the two guidelines, test and see the structure.
– Edson Santos
Check that your Androidmanifest.xml has the application tag or Activity tag -> android:screenOrientation="orientation"
– Edson Santos
There’s nothing in the manifest. I created a test screen the way you said it and it worked. Will I have to do this process for all screens? Has about 30 :(
– Éowyn
I don’t think so! On androidStudio tab "Project" (left side vertical tab) seven the "Android" view for "Project" (horizontal tabs) and take a look at the Resource directory structure. See if the layout test was not in a different structure.
– Edson Santos
It came right! Thank you very much :)
– Éowyn