0

I have a list of items and I'm using RecyclerView to showing it. This is an example of my list: enter image description here

I need to understand what is better to use for item layout: RelativeLayout or ConstraintLayout in my case.

On the one hand, the RelativeLayout is considered as deprecated and recommended to use ConstraintLayout. But at the same time, it is better to use the ConstraintLayout when there are many child views, and then we will get a performance improvement. But I only have two child views and I have a feeling that the ConstraintLayout can only hurt.

Please tell me which view group is better to choose in my case?

testivanivan
  • 967
  • 13
  • 36

1 Answers1

0

Use Constraint Layout Only. Because Relative Layout is deprecated and now days most of the people not using.The Relative layout also fluctuates depending on screen.The Constraint layout remains fix in all screen resolution.