Comment définissez-vous de l'onglet affichage à défilement?
J'ai réussi à mettre en place un affichage des onglets pour mon application (woo!)
et xml pour l'INTERFACE utilisateur
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Spinner android:id="@+id/areaSpinner"
android:layout_width="fill_parent"
android:layout_height="@dimen/one_row"
/>
<Spinner android:id="@+id/cragSpinner"
android:layout_width="fill_parent"
android:layout_height="@dimen/one_row"
/>
<Spinner android:id="@+id/routeSpinner"
android:layout_width="fill_parent"
android:layout_height="@dimen/one_row"
/>
<DatePicker android:id="@+id/dateClimbed"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<Spinner android:id="@+id/styleSpinner"
android:layout_width="fill_parent"
android:layout_height="@dimen/one_row"
/>
<Spinner android:id="@+id/detailsSpinner"
android:layout_width="fill_parent"
android:layout_height="@dimen/one_row"
/>
<TextView android:id="@+id/climbNotes"
android:layout_width="fill_parent"
android:layout_height="@dimen/three_row"
/>
</LinearLayout>
encore suis apparemment incapable de faire défiler vers le bas pour voir le reste de la forme (coupe à l'un des filateurs, pourquoi est-ce? et comment puis-je résoudre ce problème?
Vous devez vous connecter pour publier un commentaire.
J'ai eu le même problème!
Ce que j'ai fait a été d'insérer une ScrollView dans le premier fichier XML vient de "l'intérieur" de la TabHost balises, comme suit:
<TabHost>
<ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout>
... le reste de votre contenu
</LinearLayout>
</ScrollView>
</TabHost>
Espérons que cette aide!
Avez-vous le contenu de l'onglet dans une Le ScrollView?
Edit: Après j'ai corrigé votre mise en forme XML j'ai pu voir votre 2ème fichier XML. Vous avez besoin d'envelopper le tout dans ce 2ème modèle, dans un ScrollView.
2ème Edit: Essayez de modifier votre 2ème fichier XML ainsi qu'il suit ce modèle: