У меня есть ScrollView / RelativeLayout / FrameLayout , и я внутри программно помещаю некоторые виджеты.
Вот код 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>
В FrameLayout я программно помещаю другой RelativeLayout и другие виджеты внутрь.
С некоторыми виджетами (текст, изображение,кнопки), я не могу прокрутить.С другой (линейный список с текстом), я могу прокручивать.
Почему?Есть ли решение?
Спасибо.