- 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>