android: stretch image in imageview to fit screen

后端 未结 9 1111
一向
一向 2020-12-02 05:37

I have an imageview that has its height and width set to fill_parent with a linearlayout that has the same values set. So I suppose th

9条回答
  •  情深已故
    2020-12-02 06:29

    if you use android:scaleType="fitXY" then you must specify

    android:layout_width="75dp" and android:layout_height="75dp"

    if use wrap_content it will not stretch to what you need

    
    

提交回复
热议问题