###前提・実現したいこと
xmlの配置について質問させていただきます。
下記の順で配置しているのですがHorizontalScrollViewが機能しません
ImageViewにHorizontalScrollViewは置けないのでしょうか?
よろしくお願いします。
※下のButtonの下にはButtonが多数続いています。
###発生している問題・エラーメッセージ
エラーはないです
###該当のソースコード
xml
1<FrameLayout 2 xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 xmlns:tools="http://schemas.android.com/tools" 5 android:id="@+id/content_main" 6 android:layout_width="match_parent" 7 android:layout_height="match_parent" 8 android:paddingBottom="0dp" 9 android:paddingLeft="0dp" 10 android:paddingRight="0dp" 11 android:paddingTop="0dp" 12 app:layout_behavior="@string/appbar_scrolling_view_behavior" 13 tools:context="com.example.owner.bumpofchicken.MainActivity" 14 tools:showIn="@layout/app_bar_main"> 15 16 <ImageView 17 android:id="@+id/imageView" 18 android:layout_width="360dp" 19 android:layout_height="260dp" 20 android:adjustViewBounds="true" 21 android:paddingTop="70dp" 22 android:scaleType="fitXY"/> 23 24 <HorizontalScrollView 25 android:layout_width="4320dp" 26 android:layout_height="310dp"> 27 28 <GridLayout 29 android:layout_width="360dp" 30 android:layout_height="310dp" 31 android:columnCount="200" 32 android:rowCount="20"> 33 34 <Button 35 android:layout_column="0" 36 android:layout_row="0" 37 android:layout_columnSpan="15" 38 android:layout_width="360dp" 39 android:layout_height="50dp" 40 android:background="#96000000" 41 android:gravity="center"/> 42 <Button> 43 <Button> 44 . 45 . 46 . 47 . 48
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。