This question has already been answered:

I'm just a novice developer for Android and I would like to know all the advantages and disadvantages of certain layouts in Android. And I would like to know what is still better to use to create a GUI.

Reported as a duplicate by pavlofff android Dec 2 '16 at 11:56 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • The only "correct" container does not exist, otherwise then others would not be needed. You need to choose the layout of the widgets from the specific tasks, as it is required to place the elements inside. In one case, one container would be appropriate, in the other, another, in the third combination. There is no universal answer to your question and there is no better among them either. - pavlofff

1 answer 1

On this topic, you can write an article. Here is a good explanation on startandroid . There are two more layouts that are not described there, this is CoordinatorLayout and ConstrainLayout . The first is needed in order to control the interaction of all the elements that lie in it. And the second is similar to RelativeLayout but more flexible. There are also many articles about them separately.

  • I have already written an article :) - pavlofff
  • Share))). Maybe I ’ll learn something new - pavel163
  • this article closes this question - pavlofff