Ich habe eine ScrollView/RelativeLayout/FrameLayout und ich innen programmatisch einige Widgets. HierScrollView scrollt nicht?
ist die gui xml:
<?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>
Im FrameLayout, lege ich programaticaly andere RelativeLayout und andere Widgets im Inneren.
Mit einigen Widgets (Text, Bild, Schaltflächen) kann ich nicht scrollen. Mit anderen (eine lineare Liste mit Text) kann ich scrollen.
Warum? Gibt es eine Lösung?
Danke.
könnte eine dumme Frage sein (ich programmiere hauptsächlich in opengl auf Android), aber gibt es genug zu scrollen? (Ich meine, ist Ihre innere Ansicht groß genug, um scrollen zu müssen) –
Ja, ich denke, weil ich einige Widgets über die Unterseite des Fensters. – Istao