1. I want to make the HorizontalScrollView to the right of the static data, but when the attribute is set: "android: layout_toRightOf" the HorizontalScrollView disappears (is missing). Can you tell me what the problem is?

2 Of course I can set the attribute "android: paddingLeft" in the HorizontalScrollView. But I would like to know why the first option does not work.

Code (I removed all the insides, for readability):

<RelativeLayout android:paddingLeft="16dp" android:layout_width="match_parent" android:layout_height="match_parent" > <LinearLayout android:id="@+id/linear_layout_players" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > </LinearLayout> <HorizontalScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_toRightOf="@+id/linear_layout_players" > </HorizontalScrollView> </RelativeLayout> 
  • <LinearLayout android: layout_width = "wrap_content" - Style-7
  • match_parent means to occupy ALL the available space of the parent container, since the first container occupies ALL the space, the second does not have space on the screen - pavlofff
  • This is what a fresh look means. Thanks, everything is obvious, but I could not see myself) - Eddy

0