私のアプリがページ間をスライドできるように水平方向にスクロールできるようにします。しかし、AndroidのSDKでこの機能を使用すると、xmlレイアウトを親にすることができません。つまり、ボタンとオブジェクトを含むフルスクリーンを表示できません。HorizontalScrollViewの使い方は?
この問題を解決するにはどうすればよいですか、それとも別の方法ですか?
<?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>
あなたのコードstackoverflow.com/の –
はい、ここで私が追加されたコード^^ – user1144349
が重複する可能性を追加することができればそれはいいだろう質問/ 5565949 –