How would I go implementing a fixed aspect ratio View? I’d like to have items with 1:1 aspect ratio in a GridView. I think it’s better to subclass the children than the GridView?
EDIT: I assume this needs to be done programmatically, that’s no problem. Also, I don’t want to limit the size, only the aspect ratio.
I implemented FixedAspectRatioFrameLayout, so I can reuse it and have any hosted view be with fixed aspect ratio: