J'ai un ScrollView/RelativeLayout/FrameLayout et j'ai mis à l'intérieur programmaticaly quelques widgets.ScrollView ne défile pas?
Voici le xml IUG:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
android:background="@drawable/fond_app">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/titreAppli"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="My Big Application"
android:textStyle="bold"
android:textColor="#9b9b71"
android:textSize="15dp"
/>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/out"
android:layout_below="@id/titreAppli"
/>
</RelativeLayout>
</ScrollView>
Dans le FrameLayout, je mets une autre programaticaly RelativeLayout, et d'autres widgets à l'intérieur.
Avec certains widgets (texte, image, boutons), je ne peux pas faire défiler. Avec d'autres (une liste linéaire avec du texte), je peux faire défiler.
Pourquoi? Y a-t-il une solution?
Merci.
peut-être un stupide (je programme principalement dans opengl sur android) question mais est-ce assez pour faire défiler? (Je veux dire est votre vue intérieure assez grand pour avoir besoin de défilement) –
Oui, je pense, parce que je vois quelques widgets au-delà du en bas de la fenêtre. – Istao