次のようなメニューがありますhttp://flashspeaksactionscript.com/wp-content/uploads/2008/06/vert-menu18.jpg写真の「3」を考慮しchild
て、スワイプできるようにしたいと思います「3」を左に押すと、別のアイテムを見ることができます。
ここに私のxmlコードがあります:
<LinearLayout
android:id="@+id/llayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="45dp" >
<Button
android:id="@+id/Sum"
style="@style/SummaryButtons"
android:layout_width="100dp"
android:layout_height="100dp"
android:text="Item 1" />
<Button
android:id="@+id/nana"
style="@style/SummaryButtons"
android:layout_width="100dp"
android:layout_height="100dp"
android:text="Item 1" />
<Button
android:id="@+id/mama"
style="@style/SummaryButtons"
android:layout_width="100dp"
android:layout_height="100dp"
android:text="Item 1" />
</LinearLayout>
<LinearLayout
android:id="@+id/example_get_by_id"
android:layout_width
これらは子供たちです。たとえばHorizontalScrollView
、アプリケーションがフラグメントで構成されており、フラグメントをサーフィンするスワイプ機能が既にあるために使用できないという理由だけで、これらのボタンをスワイプできるようにしたいと考えています。これらのフラグメントのスワイプ機能は混同されるため、ページ全体ではなく、単一のアイテムHorizontalScrollView
に使用できるようにする必要があります。Viewpager
これについて少なくとも例はありますか?何も見つかりませんでした。前もって感謝します。