画像をスワイプで横スクロール
画像をスワイプで横スクロール するためのスクリプトをメモ
(初心者なので間違っている場合もあります)
こちらに記載されていた文を引用 しています。
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:src="@drawable/back_img_repeat"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</HorizontalScrollView>
</RelativeLayout>