Code example for ArrayAdapter

Methods: setDropDownViewResource

0
		tvValueItems.setText(String.valueOf(res));
	} 
	private void populateResourceSpinner(String location){
 
		ArrayList<String> list = mReflector.getSubClasses(location);
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(
				this,
				android.R.layout.simple_spinner_item, 
				list);
		adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
		mSpinnerResources.setAdapter(adapter);
 
		setupQuickActions(); 
	} 
 
	private void resourceListOnClick(View v, int pos, long id){
		mQuickAction.show(v);
		mQuickAction.setAnimStyle(QuickAction.ANIM_GROW_FROM_CENTER);
	} 
 
	private void selectDefaultColour(){