タイトルの通りですが、
下のmenu_item_layoutは動的にViewが追加されるのですが、
ScrollViewがスクロールしてくれません。
何が悪いのでしょうか?
xml
1 <LinearLayout 2 android:id="@+id/test1" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent" 5 android:orientation="vertical" 6 android:background="#FFFFFF"> 7 8 <ScrollView 9 android:id="@+id/menu_layout_scroll" 10 android:layout_width="match_parent" 11 android:layout_height="match_parent"> 12 13 <LinearLayout 14 android:id="@+id/menu_item_layout" 15 android:layout_width="match_parent" 16 android:layout_height="wrap_content" 17 android:orientation="vertical" 18 ・・・ 19
◆実行環境
Android 7.1.1
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。