私はScrollView/RelativeLayout/FrameLayoutを持っていて、プログラマチックにいくつかのウィジェットを入れました。私は内部のprogramaticaly別のRelativeLayout、および他のウィジェットを置く、でframeLayoutでScrollViewはスクロールしませんか?
<?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>
:
はここでGUI xmlです。
ウィジェット(テキスト、画像、ボタン)によってはスクロールできません。他のもの(テキストの線形リスト)では、私はスクロールすることができます。
なぜですか?解決策はありますか?
ありがとうございました。
(私は主にアンドロイド上のOpenGLでプログラムを作成していますが)スクロールするには十分ですか?(私の内部ビューはスクロールが必要な大きさです) –
はい、私は、窓の底。 – Istao