Thank you, I've tried it and it works: m_chkShowAll = (CheckBox)findViewById(R.id.chkShowAll); m_chkShowAll.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { m_blnSelectAll = isChecked; m_spFolder.setVisibility((m_blnSelectAll == true) ? View.GONE : View.VISIBLE); } }); m_chkShowAll.setChecked(m_blnSelectAll);
On Sun, Jul 17, 2011 at 6:40 PM, TreKing <treking...@gmail.com> wrote: > On Sun, Jul 17, 2011 at 12:23 PM, Simon Platten < > simonaplat...@googlemail.com> wrote: > >> I have already checked the documentation. > > > > http://developer.android.com/reference/android/widget/CompoundButton.html#setOnCheckedChangeListener(android.widget.CompoundButton.OnCheckedChangeListener) > > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Regards, Sy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en