下のような構成にしたとき、ScrollViewの中でlayout_weightが効かない状態になっていました。
原因がわかりません。
検索してみると以下のページが見つかりました。
android - layout_weight is not work in scrollview - Stack Overflow
http://stackoverflow.com/questions/10312272/layout-weight-is-not-work-in-scrollview
ScrollViewに「android:fillViewport="true"」を指定するだけで良いみたいですね。
まだまだ知らないことがたくさんあるなぁ。
0 件のコメント:
コメントを投稿