Views in a GridView are not focused, they get selected.

On Mon, Mar 30, 2009 at 5:56 AM, Oli Bird <[email protected]> wrote:
>
> Hi there..
>
> I have an extension of ImageView that I would like to be able to
> highlight on focus gain.
> At present, the highlighting works fairly well using onFocusChanged()
> and setColorTint(), but I seem to have very little if any control over
> when onFocusChanged() gets called.
> I have a number of these cells arranged in a grid, and they all
> initially start off focused. In addition, if i move focus off the
> grid, and re-enter it, it seems to select a random cell.
> Is this expected behaviour? Is there a recommended way of dealing with
> this, if it is? (For example, somehow force setting a specific cell if
> focus moves onto the grid?)
>
> Thanks,
> Oli
>
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
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