0
我想如下建立結構化的活動:安卓:滾動型+ ViewFlipper +底酒吧
- 頂欄
- 滾動型
- > ViewFlipper
- 底酒吧
什麼我所做的是:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout style="@style/TitleBar">
TOP BAR
</LinearLayout>
<ScrollView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true" >
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ViewFlipper android:id="@+id/details"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
VIEW FLIPPER
</ViewFlipper>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:background="@android:drawable/bottom_bar"
android:gravity="center_vertical">
BOTTOM BAR
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
這當然不起作用。
事實上,它似乎底部的酒吧是隱藏在viewflipper
下。 我該如何解決這個問題?
外部佈局是一個Linearlayout。將底欄放在ScrollView下也不起作用。 – Stefano 2011-04-24 12:57:31