 <p>Assuming your adapter is based off some class, and this class has the methods to set and get the switch value, you should be able to do something like this in your adapter:</p> <pre><code>public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = LayoutInflater.from(getContext()).inflate(R.layout.some_layout, null); } Switch switch_temp = (Switch) v.findViewById(R.id.item_pers_ajout_op_switch); switch_temp.setChecked(getItem(position).getTousCoches()); return convertView; } public void switchAll(boolean mySwitch) { for (int i=0; i&lt;getCount(); i++) { getItem(i).setTousCoches(mySwitch); } notifyDataSetChanged(); } </code></pre>