I'm facing the same problem.
Did you find any solution?

On Aug 26, 12:13 pm, Sebastián Treu <sebastian.t...@gmail.com> wrote:
> Hi there,
>
> I'm trying to realize how the focus and selection in theGallery
> widget is doing their job. I'm facing weird situations when trying to
> update information (TextViews and Spinner) upon aselecteditem in theGallery. 
> The focus and selection is lost. So, using the resource
> gallery_item_background will end in showing the "unselected"
> background for the currentselectedimage. I have used the .xml that
> came with the android sdk, and I can't realize how this is happening.
> I have set setFocusable(false) and setFocusableInTouchMode(false) to
> all other Views to try out (and true for theGallery) without any
> luck.
>
> I have also add 'in-situ' debug, that is, a menu that updates
> differents widgets when onItemSelected() is called. So I can see while
> using the application how the background resource is applied. When set
> to 'no update' the obvious thing happens. None of the widgets are
> updated with new values, and the background resource works as
> expected. When set to 'manual update' (an update in the listener that
> do: .setText() on the textview) does work depending the current View
> that is showing the TextViews (I have a ViewFlipper that display 2
> differents Layout of the TextViews).
>
> I know that It can be complicated to understand the scenario without
> the code, but basically, updating the Spinner will always remove the
> focus from theGallery(the Spinner was set no-focusable before) and
> the image resource background will be set as unselected.
>
> How can I manage this updates? I also call requestFocus() and
> requestFocusFromTouch() after the updates are made. I can't realize
> where is the problem. I have an update that is made by a handler.
> Happens the same thing.
>
> Any idea how should I manage an update to other widgets upon a
> selection on theGallerywithout losing focus or theselectedstate of
> the image view?
>
> Thanks,
>
> --
> If you want freedom, compile the source.
>
> Sebastián Treuhttp://labombiya.com.ar

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

Reply via email to