Wie ein LinearLayout unter einem LinearLayout in einem anderen RelativeLayout?
Ich versuche, um Platz à LinearLayout unter einem LinearLayout in einem anderen RelativeLayout?
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background_linearlayout_reportdelay"
>
</LinearLayout>
</RelativeLayout>
</ScrollView>
Gibt es eine Möglichkeit, dass ich das tun kann?
Danke
Warum? Wenn Sie nur über 2-Elemente im RelativeLayout, Sie könnten nur replcae es mit einer vertikalen LinearLayout. Oder wenn das Kind LinearLayouts haben einige Elemente, Graben Sie das LinearLayout und setzen Sie Sie direkt in das RelativeLayout.
Danke , ich ersetzen RelativeLayout mit einem vertikalen LinearLayout und es funktioniert.
Danke , ich ersetzen RelativeLayout mit einem vertikalen LinearLayout und es funktioniert.
InformationsquelleAutor Amal | 2014-07-24
Du musst angemeldet sein, um einen Kommentar abzugeben.
Diesem Weg versuchen,hoffe, das wird Ihnen helfen, Ihr problem zu lösen.
InformationsquelleAutor Haresh Chhelana
InformationsquelleAutor AlexBalo