Code example for LinkedHashSet

Methods: add

0
 
					@Override 
					public void onCheckedChanged(CompoundButton buttonView,
							boolean isChecked) {
						if (isChecked) {
							ObjectSelectDialog.this.result.add(item);
						} else { 
							ObjectSelectDialog.this.result.remove(item);
						} 
					} 
				}); 
				renderedField.setPadding(5, 10, 5, 10);
				return layout;
				// } 
			} 
 
		}; 
		listView.setAdapter(adapter);
		listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
		listView.setClickable(true);
		return adapter;