Enabling different logic for either of two layouts
<p>I've got several markups for different screen sizes. On the same activity, say video, I have to use a ListView element in one case and a GridView element in another. Basically, regarding layout I'll have to switch between logic of either of those two components.
What is the best way to achieve it ?</p>
