I found the answer.
http://stackoverflow.com/questions/5067641/how-uncheck-items-in-alertdialog-setmultichoiceitems
Actually the boolean array that is passed initially also has to be
modified.
Thanks!
On Apr 13, 10:21 pm, Nasif Noorudeen wrote:
> you ahve to use onch
> eckchanedListener
>
>
>
you ahve to use onch
eckchanedListener
On Wed, Apr 13, 2011 at 10:31 PM, Akshay Goel wrote:
> OnCreate of what? The dialog? I want to uncheck the item as soon as
> the user checks All, without dismissing the dialog.
>
> Thanks,
> Akshay
>
> On Apr 13, 5:44 pm, harsh chandel wrote:
> > write the
OnCreate of what? The dialog? I want to uncheck the item as soon as
the user checks All, without dismissing the dialog.
Thanks,
Akshay
On Apr 13, 5:44 pm, harsh chandel wrote:
> write the setitemchecked method withinin oncreate method.
>
> On Apr 13, 9:56 am, Akshay Goel wrote:
>
>
>
> > But I
write the setitemchecked method withinin oncreate method.
On Apr 13, 9:56 am, Akshay Goel wrote:
> But I am manipulating the data by calling setItemChecked(). When I
> said updating the UI, I meant updating data that results in refreshing/
> changing the UI.
>
> Thanks,
> Akshay
>
> On Apr 12, 10
by calling setItemChecked() you are updating the UI, the data destination.
What if "someone" at the same time changes the data at the source? Then your
UI is out of sync with your data storage.
Treat the UI as a one way system - it should only render a representation of
your data model, but shou
But I am manipulating the data by calling setItemChecked(). When I
said updating the UI, I meant updating data that results in refreshing/
changing the UI.
Thanks,
Akshay
On Apr 12, 10:32 pm, lbendlin wrote:
> notifyDataSetChange sounds like the best solution, but for that you need to
> actually
notifyDataSetChange sounds like the best solution, but for that you need to
actually change the data set, not the UI. So you would need to manipulate
the "checked" flag in the data.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post
7 matches
Mail list logo