mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Adapter now populates view with list items
This commit is contained in:
		
							parent
							
								
									b779ec097d
								
							
						
					
					
						commit
						873218e526
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -28,7 +28,7 @@ public class NearbyListFragment extends ListFragment { | |||
| 
 | ||||
|     private int mImageSize; | ||||
|     private boolean mItemClicked; | ||||
|     private ArrayAdapter mAdapter; | ||||
|     private NearbyAdapter mAdapter; | ||||
| 
 | ||||
|     private List<Place> places; | ||||
|     private LatLng mLatestLocation; | ||||
|  | @ -110,13 +110,13 @@ public class NearbyListFragment extends ListFragment { | |||
|         return places; | ||||
|     } | ||||
| 
 | ||||
|     private class NearbyAdapter extends ArrayAdapter { | ||||
|     private class NearbyAdapter extends ArrayAdapter<Place> { | ||||
| 
 | ||||
|         public List<Place> placesList; | ||||
|         private Context mContext; | ||||
| 
 | ||||
|         public NearbyAdapter(Context context, List<Place> places) { | ||||
|             super(context, 0); | ||||
|             super(context, R.layout.item_place, places); | ||||
|             mContext = context; | ||||
|             placesList = places; | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan