How to put 50% for width

前端 未结 4 2033
野的像风
野的像风 2021-01-18 01:24

I have a LinearLayout in horizontal orientation and 2 ImageView and I want to make that ImagesView fill 50% of the screen on width, to work in every cellphone or tablet with

4条回答
  •  清酒与你
    2021-01-18 02:00

    Add android:layout_weight="1" in both the ImageView and make the width if image view as fill_parent I think it will solve your problem

    But remember it will stretch your image as because image view will streach in every screen resolution so as your image.

提交回复
热议问题