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:
If your image view is inside a constraint layout, you can use following constraints to create a square image view