前提・実現したいこと
初心者です。
AndroidStudioを初めて使用しています。
画面幅を超えた際に、横にスクロールさせるために、
"HorizontalScrollView" を使用しました。
スクロールバーで表示することはできたのですが、
丸ポチのマークでスライドできるようにしたのですが、
どのようにしたら良いのでしょうか?
すみませんが、教えてください。
発生している問題・エラーメッセージ
エラーメッセージ
該当のソースコード
kotlin
1 2 3<HorizontalScrollView 4 android:layout_width="fill_parent" 5 android:layout_height="0dp" 6 android:layout_weight="1" 7 android:fadingEdgeLength="25dip" 8 > 9 10 <LinearLayout 11 android:id="@+id/layout_food_group" 12 android:layout_width="wrap_content" 13 android:layout_height="wrap_content" 14 android:layout_marginBottom="0dp" 15 android:layout_marginTop="8dp" 16 android:gravity="center_horizontal" 17 > 18 <ImageView 19 android:layout_width="60dp" 20 android:layout_height="50dp" 21 android:layout_marginEnd="12dp" 22 android:layout_marginStart="12dp" 23 android:src="" 24 tools:ignore="ContentDescription" 25 /> 26 <ImageView 27 android:layout_width="60dp" 28 android:layout_height="50dp" 29 android:layout_marginEnd="12dp" 30 android:layout_marginStart="12dp" 31 android:src="" 32 tools:ignore="ContentDescription" 33 /> 34 <ImageView 35 android:layout_width="60dp" 36 android:layout_height="50dp" 37 android:layout_marginEnd="12dp" 38 android:layout_marginStart="12dp" 39 android:src="" 40 tools:ignore="ContentDescription" 41 /> 42 <ImageView 43 android:layout_width="60dp" 44 android:layout_height="50dp" 45 android:layout_marginEnd="12dp" 46 android:layout_marginStart="12dp" 47 android:src="" 48 tools:ignore="ContentDescription" 49 /> 50 <ImageView 51 android:layout_width="60dp" 52 android:layout_height="50dp" 53 android:layout_marginEnd="12dp" 54 android:layout_marginStart="12dp" 55 android:src="" 56 tools:ignore="ContentDescription" 57 /> 58 <ImageView 59 android:layout_width="60dp" 60 android:layout_height="50dp" 61 android:layout_marginEnd="12dp" 62 android:layout_marginStart="12dp" 63 android:src="@drawable/food_beans" 64 tools:ignore="ContentDescription" 65 /> 66 </LinearLayout> 67 68 </RelativeLayout> 69 70 </HorizontalScrollView> 71
試したこと
丸ポチのマークで横にスクロールできるようにしたいです。
補足情報(FW/ツールのバージョンなど)
kotlinについてもほとんど理解ができていません。。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2019/04/17 09:52
2019/04/17 10:07
退会済みユーザー
2019/04/17 10:18