現在,整個屏幕都是可滾動的。Android with Scrollview for half screen only
我想設定的部分B(參照附圖)僅可滾動的同時A部分(視頻部分) 是固定的。以下是我現在的代碼禮儀。請幫忙。
<LinearLayout --some code here-->
<ScrollView
--some code here-->
<LinearLayout
android:id="@+id/videoPlayer"
>
<VideoView
--some code here--/>
<MediaController
android:layout_width="fill_parent"
/>
<TextView
--some code />
<TextView
--some code />
<ImageView some code
</ImageView>
<RelativeLayout --some code here-->
<TextView
android:id="@+id/scarfPrice"
/>
<Button android:id="@+id/btnPurchase"
/>
</RelativeLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
謝謝你的回答。我解決了它。 :d – user2412351