How to add focusable items to ListActivity

by PalR » Tue, 25 May 2010 01:59:57 GMT


Sponsored Links
 All, I need help to resolve focusability/selection of Views part of my
ListActivity which is fed by ResourceCursorAdapter
I use newView and bindView to add custom View dependeing on data from
Cursor
My list items have a TextView and ImageView , and I want each to have
separate focus.

With default implementation when I scroll down I have the entire
agrregate view (TextView + ImageView) selected
Desired behaviour: I want default scroll to happen only on TextView
and I want to be able to scroll/ shift focus
left-right using keypad between the TextView and ImageView

Any ideas how to detach default behaviour of ListActivity which now
highlights the entire aggregate View

--



Other Threads

1. Nullpointer ......Stack overflow, expanding

I have created a complex view layout.Whn i see the layout(in eclipse)it
appears fine .When i see the log statements also I get the statements till
the last line in the onCreate without any issues .

But at run time i get this error which is Nullpointer.What does this error
really indicate??

11-04 14:28:11.044: INFO/dalvikvm(176): Stack overflow, expanding
(0x41049200 to 0x41049000)
11-04 14:28:11.054: INFO/dalvikvm(176): Shrank stack (to 0x41049200,
curFrame is 0x4104ad4c)
11-04 14:28:11.076: DEBUG/AndroidRuntime(176): Shutting down VM
11-04 14:28:11.076: WARN/dalvikvm(176): threadid=3: thread exiting with
uncaught exception (group=0x40010e28)
11-04 14:28:11.082: ERROR/AndroidRuntime(176): Uncaught handler: thread main
exiting due to uncaught exception
11-04 14:28:11.134: ERROR/AndroidRuntime(176):
java.lang.NullPointerException
11-04 14:28:11.134: ERROR/AndroidRuntime(176):     at
android.view.ViewRoot.draw(ViewRoot.java:992)
11-04 14:28:11.134: ERROR/AndroidRuntime(176):     at
android.view.ViewRoot.performTraversals(ViewRoot.java:829)
11-04 14:28:11.134: ERROR/AndroidRuntime(176):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1103)
11-04 14:28:11.134: ERROR/AndroidRuntime(176):     at
android.os.Handler.dispatchMessage(Handler.java:88)
11-04 14:28:11.134: ERROR/AndroidRuntime(176):     at
android.os.Looper.loop(Looper.java:123)
11-04 14:28:11.134: ERROR/AndroidRuntime(176):     at
android.app.ActivityThread.main(ActivityThread.java:3742)
11-04 14:28:11.134: ERROR/AndroidRuntime(176):     at
java.lang.reflect.Method.invokeNative(Native Method)
11-04 14:28:11.134: ERROR/AndroidRuntime(176):     at
java.lang.reflect.Method.invoke(Method.java:515)
11-04 14:28:11.134: ERROR/AndroidRuntime(176):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
11-04 14:28:11.134: ERROR/AndroidRuntime(176):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
11-04 14:28:11.134: ERROR/AndroidRuntime(176):     at
dalvik.system.NativeStart.main(Native Method)

--~--~---------~--~----~------------~-------~--~----~

2. G1 Software Updates

Hi,

This may be a dumb question but does anyone know where I can get an
official list of "software updates" for my Google G1 phone?  I'm
looking for some official Release Notes from Google or T-Mobile rather
than reading about an update from a 3rdparty website.  I'm with T-
Mobile and my phone has been updated twice now.  Once about a week ago
and again today.  I'm trying to figure out if they have fixed the POP3
email issues yet.

Thanks,

Chris

--~--~---------~--~----~------------~-------~--~----~

3. Device does not vibrate on incoming text/sms even when not in silent mode.

4. best way for a service to send a notice to an activity?

5. Fluentizer for Android ?

6. how to implement the single choice list?

7. This is brilliant...