Je suis en train de construire une activité structurée comme suit:Android: ScrollView + ViewFlipper + Bar Bas
- TopBar
- ScrollView
- > ViewFlipper
- Bottom Bar
Qu'est-ce que J'ai fait est:
<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>
Cela, bien sûr, ne fonctionne pas. En fait, il semble que la barre inférieure soit cachée sous viewflipper
. Comment puis-je résoudre ce problème?
La disposition extérieure est une disposition linéaire. Mettre la BARRE INFERIEURE sous ScrollView ne fonctionne pas non plus. – Stefano