Implementing item-dependent rendering for custom list view