Thanks, Very strange they don't provide this capability.

I'm writing a game where this is crucial.

Anyways, I did have to implement my own view and managed to get the
LayerDrawable working to accomplish this.  Works pretty good.

On Sep 18, 12:39 am, BJP <[email protected]> wrote:
> For whatever reason, this is a pet peeve of some of the core Android
> development team.  There have been a number of posts where developers
> have requested the ability to programmatically highlight objects as if
> the track ball was used to select them but the answer is that this is
> impossible in "touch mode" which is entered whenever the user touches
> the screen.  The core Android developers claim that highlighting
> objects programmatically will present a confusing user experience, so
> they're not going to let developers do it.  As far as I know, your
> only alternative is to make your own View that behaves like you want
> it to, but that will be frowned 
> upon:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> --Ben
>
> On Sep 17, 12:05 pm, k_pip_k <[email protected]> wrote:
>
> > Hello all,
>
> > I have a GridView with a BaseAdapter that cycles through the elements
> > making views for each element or cell in the grid.
>
> > What I would like to do is create a clickable image/button, and when
> > the user clicks or touches it, for it to remain clicked and
> > highlighted so that they make click on several if they so choose.
>
> > I have tried, ImageButtons, Buttons, ImageViews, LayerDrawables(with a
> > swapable background color drawable), ToggleButtons, CheckBoxes,
> > derived my own CompoundButton, but nothing seems to work.
>
> > I was a teeny bit successful with a ImageButton where I could create
> > it selected, but if the user clicked on it, I couldn't get that visual
> > state back.
>
> > Any help is appreciated.  I can post code if you like.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to