Populating data on gridview
<p>In my android app, i have a particular scenario, for one of the screens.</p>

<p>I require 2 button,one on each side of the corner(left and right).
Below this i want to populate data in a control.</p>

<p>If left button is clicked, the control should be a gridview.
If right button is clicked , the control should be a listview.</p>

<p>And accordingly the data should be populated.</p>

<p>How should i approach this scenario.
Should i create controls dynamically, or use xml instead</p>

<p>Rgds</p>
