我六个月前开发了一个应用程序,现在我尝试更新它。 (Android工作室更新)。我创建了一个新的活动,我尝试在下面放置两个布局(它可以是相对布局或线性布局),但它不起作用。我检查我使用填充父项属性的旧项目,但由于更新,我现在无法使用它。Android如何把两个布局放在下面?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/content_launcer_screen"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:showIn="@layout/app_bar_launcer_screen"
android:elevation="1dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="150dp"></LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/linearLayout6"></LinearLayout>
</RelativeLayout>
</RelativeLayout>
你的意思是match_parent? – Rippr
请提供验证码 –
我加了一些代码。 – user2265473