Skip to content Skip to sidebar Skip to footer

Why Are Some Of My Views Not Aligned Correctly At The Bottom Of My Relative Layout?

I have problems getting some of my views aligned in a relative layout that I use inside a row of my listview. Here is a screenshot from the layout builder in Eclipse, this is what

Solution 1:

Try adding android:layout_alignParentLeft="true" as well; sometimes Views aren't displayed properly if it can't anchor the view with at least 2 points. Also, is this RelativeLayout used within a ListView? If so, you might find you have some difficulty getting it to look right. There was another question where someone was having a problem where the RelativeLayout looked right on its own, but not once it was included as part of a ListView. We didn't manage to figure out what went wrong so he had to use nested LinearLayouts instead.


Post a Comment for "Why Are Some Of My Views Not Aligned Correctly At The Bottom Of My Relative Layout?"