Items in ListView don't get selected using touch

by Yousuf Haider » Sat, 20 Jun 2009 09:35:03 GMT


Sponsored Links
 Hi,

I have a relative layout which contains 2 things. Something like this:

RelativeLayout:
    ---LinearLayout
        --Some buttons
        --TextView
    --ListView

If I use the trackball to scroll I can select items in my list view. However
if I try to touch an item to select it the item doesn't get selected.

Any ideas ?

_yousuf

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



Items in ListView don't get selected using touch

by Odessa Silverberg » Mon, 22 Jun 2009 16:40:24 GMT


 Did you tried playing with

android:clickable/setClickable(boolean)
 http://developer.android.com/reference/android/view/View.html #attr_android:clickable

android:focusable/setFocusable(boolean)
 http://developer.android.com/reference/android/view/View.html #attr_android:focusable

or

android:focusableInTouchMode/setFocusableInTouchMode(boolean)
 http://developer.android.com/reference/android/view/View.html #attr_android:focusableInTouchMode





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


Sponsored Links


Other Threads

1. Turbo Dalvik

hi,

is it in any way related to jit that is being developed at google?

http://www.myriadgroup.com/Media-Centre/News/MYRIAD-BRINGS-3x-FASTER-APPLICATIONS-RICHER-GAME-GRAPHICS-AND-BETTER-BATTERY-LIFE-TO-ANDROID.aspx

pskink

-- 

2. LG ks360

im a complete beginner at this but i have heard that lg have re-
released the lg ks360 with android installed. i have the older version
with lg os installed, i was wondering would it be possible to install
android considering that lg did not modify the phones specs other that
the os. thanx

--

3. Android hardware

4. Regarding the applications that were launched during the Launcher activity

5. unable to find SDK platform

6. getSharedPreferenc

7. sms database