android - onCreateView ListView is Empty. Items Missing -
resolved. see singularhum's answer below. i have sliding menu option points fragment. fragment inflates layout using oncreateview . update values of list in onactivitycreated . here source. my listview public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) { this.dateformat = new simpledateformat("dd/mm/yyyy hh:mm", locale.getdefault()); this.portfolio = new portfolio(); this.portfolio.addcompanynoupdate("yhoo"); // specify fragment layout file fragment class view view = inflater.inflate(r.layout.fragment_stock, container, false); progresstext = (textview) view.findviewbyid(r.id.progresstextview); // assign our cursoradapter adapter = new quoteadapter(getactivity(), portfolio.getquotes()); listview list = (listview) view.findviewbyid(r.id.list); list.setadapter(adapter); adapter.notifydatasetchanged(); return view; } then have onactivitycreated doing u...