如何放置其他的RelativeLayout内的LinearLayout以下的LinearLayout? [英] How to place a LinearLayout below a LinearLayout inside another RelativeLayout?
本文介绍了如何放置其他的RelativeLayout内的LinearLayout以下的LinearLayout?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试着到的LinearLayout放置另一个RelativeLayout的?
Im trying to place à LinearLayout below a LinearLayout inside another 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>
有没有什么办法可以做到这一点?
Is there any way I can do that?
感谢您
推荐答案
试试这个办法,希望这将帮助你解决你的问题。
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background_linearlayout_reportdelay">
</LinearLayout>
</LinearLayout>
</ScrollView>
这篇关于如何放置其他的RelativeLayout内的LinearLayout以下的LinearLayout?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文