I know this is for demo purpose, but I can't understand why you put this temporary code here, instead of inside the adapter. It's not responsibility of the view to know its ratio (especially in future), but it needs to receive this information in the "populating process".