Get ImageView width and height
问题 I'm trying to return the width and height of my ImageView but keep being returned 0. I'm calling ImageView.getWidth() and ImageView.getHeight() in OnCreate() and I believe the ImageView hasn't had enough time to initialize, thus the error I'm getting: java.lang.IllegalArgumentException: width and height must be > 0 My question is: Where is a good place to retrieve the width and height of my ImageView so I know it has enough time to be initialized properly? Note: I've tried