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:

<ImageView
  android:layout_width="fill_parent"
  android:layout_height="whatever the width ends up being" />

Is something like that possible in a layout file without having to create my own view class?

Thanks

14 Answers
14

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *