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. ProgressBar no coming on a ListActivity

Hi
I am having a ListActivity
in the onListItemClick() of an item I need to do some processing
so I need to show a progressbar on the screen.

But ProgressBar is not getting shown
I gave probar.show()
no effect
plz help
--~--~---------~--~----~------------~-------~--~----~

2. Unable to install the .apk file via OTA in Android 1.0 release

Hi All,

I am trying to install the downloaded apk files (downloaded via OTA in
SD Card) but on installing the downloaded application shows "Install
blocked" alert message.
below is full prompt:

"For security, our phone is set to block installation of applications
not sources in android market"


Any idea/suggestion on how to install the application which are
downloaded via OTA.

Regards
Wiki
--~--~---------~--~----~------------~-------~--~----~

3. Is it possible to connect two android with different machine?

4. current page's url

5. Using the battery state

6. Port issue with the Android Emulator

7. WebViewDemo in apps-for-android