Please explain View.addFocusables

by Nigel » Thu, 03 Sep 2009 18:36:18 GMT

Sponsored Links
 I'm creating a custom component.  The child components are not acting
as expected in regard to my custom components re-acting with its

On investigations to solve this I came across View.addFocusables and
View.addTouchables.  These may help me, but I'm not really sure how
they're intended to be used.  Can anyone provide a better description,
or example, of how these are intended to be used?  A dig around on
Google revealed nothing :-(...

Any explanation - or links to pages I couldn't find - much

Cheers - Nigel

Please explain View.addFocusables

by Nigel » Fri, 04 Sep 2009 16:48:29 GMT

 addFocusables was on the wrong track.  The solution was much more

My custom component was derived from View.  It needed to be derived
from one of the ViewGroup classes - in my case FrameLayout.



Sponsored Links

Other Threads

1. Butuh Bantuan id-android Member..

RR, butuh bantuan buat sounding membebaskan bootloader Milestone seperti
tolong hajaaar di sini

walaupun RR tidak pakai Milestone tapi tolong bantu ya, mumpung lagi event
terus juga kalo ngetwit pakein hashtag #mwc10 #mdap10 and #freeandroid

thank youuu..matur nuhun...

"Indonesian Android Community [id-android]" 

2. Force Close just restarts the app?

I've noticed that whenever I introduce some new awful bug to my app
and it crashes, Android just keeps starting it up over and over again.
I eventually have to hit the dial button on the phone just to make my
app lose focus.

I searched this group's posts and the developer documents... I can't
find anything about this. Is this usual behavior? If so, is there some
way to disable it? Maybe it's just my coming from a desktop
background, but I kind of think that when something is closed, it
should stay closed, especially if the reason it was closed was that it
crashed. And of course, I hope my final app never force closes, but
with all the different hardware you never know...


3. Multitouch seems badly broken on Nexus One 2.1-update1

4. how to find the path of frameworks/base/include/utils/Asset.h ?

5. Oot Ada yg di plangi?

6. implicit intents

7. Android Anti-Pirac