0
我有一個有兩個嵌套RelativeLayouts的RelativeLayout。我希望第一個RL保持在第一位,第二個可滾動,但這不起作用。Android RelativeLayout問題
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:id="@+id/relativeTop"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<!--Buttons-->
</RelativeLayout>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<!--Lots of nested RelatiLayouts with Views-->
</RelativeLayout>
</ScrollView>
</RelativeLayout>
代碼插入只是粘貼它,標記代碼並按下上面的「{}」按鈕 – WarrenFaith 2011-02-17 20:58:22