I want to evenly space a vertical row of images in a开发者_如何学编程 ScrollView.
I'm telling my LinearLayout
inside the ScrollView
to fill_parent
, but it's not, it's wrapping content.
Can you post your XML? Are you putting each ImageView in a separate LinearLayout or what? Just put all your ImageViews inside a vertical LinearLayout, and add:
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
to all of them. That should do the trick.
EDIT: Wait, I'm confused. What are you trying to accomplish? Do you have a fixed size for your ScrollView?
精彩评论