mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Change listview code and .xml file
This commit is contained in:
parent
9836fb920e
commit
b7d0e6e725
2 changed files with 16 additions and 6 deletions
|
|
@ -13,6 +13,7 @@ import android.view.ViewGroup;
|
|||
import android.widget.Adapter;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.ListAdapter;
|
||||
import android.widget.ListView;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
|
||||
|
|
@ -58,9 +59,11 @@ public class NearbyListFragment extends ListFragment {
|
|||
ViewGroup root = (ViewGroup) view.getRootView();
|
||||
root.addView(progressBar);
|
||||
*/
|
||||
final ListView listview = (ListView) view.findViewById(R.id.listview);
|
||||
|
||||
mAdapter = new NearbyAdapter(getActivity(), places);
|
||||
setListAdapter(mAdapter);
|
||||
//setListAdapter(mAdapter);
|
||||
listview.setAdapter(mAdapter);
|
||||
|
||||
return view;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue