0

プロジェクトにバウンス可能なスクロールビュー (iPhone のようなもの) が必要です。オーバースクロールに関する記事をいくつか見つけて、 This class hereのように使用しています。しかし、スクロールビューをヘッダーとして設定する方法がわかりません。

また、カスタム スクロール ビューの直前にビューを追加しようとしましたが、機能しませんでした (最後のコード)。

scrollview にアタッチされたビューが必要です。どうすればこれを行うことができますか? どんなアイデアでも感謝します。

<LinearLayout 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"
    android:background="#FF8080"
    >
    <ImageView 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
</LinearLayout>
<com.amix.tstsrc.MyScrollView
    android:id="@+id/my_scrollView"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true" 
    >
    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="#8585FF">
        <TextView
            android:id="@+id/help_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@android:color/white" />
    </LinearLayout>
</com.amix.tstsrc.MyScrollView>
4

1 に答える 1