http://www.mkyong.com/android/android-listview-example/
TextView textView = (TextView) rowView.findViewById(R.id.label);
ListView listView = (ListView) view.findViewById(R.id.mainListView);Can not resolve method findViewById(int)** this will different from the view that included (R.layout.layoutXML)-no need view. for setContentView-used for inflaterListView listView = (ListView)view.findViewById(R.id.mainListView); ContactListArrayAdapter adapter = new ContactListArrayAdapter(getContext(),MOBILE_OS);listView.setAdapter(adapter);Get list view that in the different layout file and set array adapter.
Comments
Post a Comment