Answer the question
In order to leave comments, you need to log in
Why can't layout be changed? The background has changed, the views are not inserted?
This is how the screen became:
I decided to make 2 layouts for different screen sizes, I created the layout-xxxhdpi folder,
copied the usual layout from the layout folder, and changed the background to green in it. I launched the emulator with a high resolution and the screen turned green, I think, okay, everything works as it should, I launch another emulator with a small screen, it is also green ... I decided to figure out why, deleted the layout-xxxhdpi folder, deleted it along with the layout, run again the emulator, again a green background, I go into the xml file and this is what is in it:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.view.fragments.MainFragment">
</androidx.constraintlayout.widget.ConstraintLayout>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question