How to get the width and height of an android.widget.ImageView?

后端 未结 10 1807
长情又很酷
长情又很酷 2020-11-22 16:53
╔══════════════════════════════════════════════╗   ^
║ ImageView    ╔══════════════╗                ║   |
║              ║              ║                ║   |
║              


        
10条回答
  •  隐瞒了意图╮
    2020-11-22 17:25

    I just set this property and now Android OS is taking care of every thing.

    android:adjustViewBounds="true"

    Use this in your layout.xml where you have planted your ImageView :D

提交回复
热议问题