RelativeLayout vs LinearLayout with weights

android, android-linearlayout, android-relativelayout

Solution

It actually depends on what you are trying to implement. If this is just a content of a row from ListView, I would prefer LinearLayout with weights. There are good answers from this question about using RelativeLayout or LinearLayout, which is related to your's:

Is a RelativeLayout more expensive than a LinearLayout?

Problem

I have a row in a list that I am trying to implement. I can use one RelativeLayout or one LinearLayout with weights. Is there a clear winner in performance for one RelativeLayout or one linearLayout with weights?

Original source

Related problems