Passing from a listview to a gridview
I have an activity with a list, whose items are made of an image+text. I
need to allow the user to change the view and have a gridview instead of
it (whose elements are still made of the same image+text).
The user can do it through an icon menu:
public boolean onOptionsItemSelected(MenuItem item)
{
if(item.getItemId()== R.id.change_view)
{
// ?
}
...
I tried to just set the new adapter but it doesn't work..do I have to
create a new activity to do that?
No comments:
Post a Comment