Thursday, July 14, 2011

Re: [android-developers] new ExpandableList question

On Thu, Jul 14, 2011 at 07:56:32PM -0400, Mark Murphy wrote:
> Have you tried setOnChildClickListener() on ExpandableListView?

I'd searched for that, earlier...got OnChildClickListener, just like this
time. But last time, my brain either removed setOnChildClickListener, or
it put something else in the spot where it should have been. Nothing new
there (as mentioned many times before, brain surgery to remove a large
tumor in the area (occipital lobe) that processes vision signals from
the optic nerve...it strikes at random, and is supremely annoying).

Anyways, it's "there" now.... So yeah, I'll just use that. The
examples, btw, don't appaer to call any listener, so I'm assuming
that a long-press on a child entry is the default to activate it.

Oh, and I worked out how to keep all of the data straight, too. The
ONLY data that gets revised is the copy of the Brand/Name data that
feeds the ListView. Then, for group 0, I take the item number by itself.
For group 1, I take the number of items prior to group 1; for group 2,
same, for the number of items prior to group 2 (last from group 1 + 1),
and so on. Then, the actual data to be displayed is indexed by the
real row numbers, as is already the case. A simple switch and 1st grade
math is all it'll take. :-)

Thanks,
--jim

--
73 DE N5IAL (/4) | "This 'telephone' has too many
spooky130u@gmail.com | shortcomings to be seriously considered
< Running FreeBSD 7.0 > | as a means of communication. The device
ICBM / Hurricane: | is inherently of no value to us."
30.44406N 86.59909W | (Western Union internal memo, 1876)

Point Lobos Photography Set 1 (Photo-posters): http://jdgapps.com

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment