ImageView - have height match width?

后端 未结 14 2496
长发绾君心
长发绾君心 2020-12-02 05:17

I have an imageview. I want its width to be fill_parent. I want its height to be whatever the width ends up being. For example:



        
14条回答
  •  心在旅途
    2020-12-02 06:14

    Maybe this will answer your question:

    
    

    You can ignore the scaleType attribute for this particular situation.

提交回复
热议问题