android - Two ListViews in two different fragments produce an Error -


i have 2 fragments 2 listviews in app. have attempted following both listviews in each fragment:

listview listview = (listview)view.findviewbyid(r.id.list1); listview.setadapter(new listadapter() {      //sets adapter  } 

but when run, produces error:

can't have viewtypecount < 1 

is there better method doing? appreciated


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -