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:
i did like this -
layout.setMinimumHeight(layout.getWidth());