Friday, February 17, 2012

[android-developers] Re: Cursor Blinking Management (TabHost/ActivityGroup)

lbendlin schrieb:
> You could even "refine" the approach by first taking the focus away and
> then setting it again.
>
> http://developer.android.com/reference/android/view/View.html#requestFocus%28%29

I guess you are not a good listener, didn't grasp how I
described my application.

Since my application is a tab host, if I switch
to another tab, this is exactly what happens underneath, the
tab that comes to front also receives a request focus. You
can lookup the source code of the tab host. The tab host
will first try to focus inside the tab widget, but if
there are no focusable elements it will next focus
inside the fragment.

The fact is that some of the tabs that receives the focus
nevertheless don't switch on the cursor blinking whereas
some switch on the cursor blinking. Basically those tabs
that where first removed via clearAllTabs() and then
re-added via addTab() lose the blinking. Tabs that were
freshly added don't lose the blinking.

The clearAllTabs() / addTab() thing is a workaround to
the fact that the tab host does not provide removeTab()
or insertTab().

Bye

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate