ページ間をスライドできるように、アプリを水平方向にスクロールできるようにしたいと考えています。しかし、Android sdk でこの機能を使用すると、xml レイアウトを親で塗りつぶすことができなくなります。つまり、ボタンとオブジェクトを含めるための全画面表示ができなくなります。
どうすればこれを修正できるか、または代替方法は何ですか?
コードは次のとおりです。
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<RelativeLayout
android:layout_width="348dp"
android:layout_height="559dp" >
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginBottom="341dp"
android:layout_marginLeft="146dp"
android:src="@drawable/ic_launcher" />
</RelativeLayout>
</HorizontalScrollView>