This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Android and the fly likes Problem with Customised ListView Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Problem with Customised ListView" Watch "Problem with Customised ListView" New topic

Problem with Customised ListView

Prajkti Khadse
Ranch Hand

Joined: Apr 02, 2009
Posts: 52
Hi all,

I have a Customised ListView which contains ImageView and TextView.
On click of TextView i want to Delete the item form ListView.
but problem is that, i need to Double Click the TextView.
First Click to Select item in the List and Second click is the actual click on the TextView.
It looks very weired to Click Twice.
Can anybody please help me to Achieve Single Click effect...??!!!
Pratik Goswami
Ranch Hand

Joined: Mar 02, 2009
Posts: 136

Hi Prajkti,

I was trying to implement same feature even tried to implement CheckedTextView but I was unable to find out solution. I think it's limitation of current List View in android.

As a option you can create a context menu on List view's long click action. Here is the reference link.

I wish i can implement iPhone like UI in android

Thanks & Regards
Pratik Goswami

iOS * Android Developer
Prajkti Khadse
Ranch Hand

Joined: Apr 02, 2009
Posts: 52
Thanks for your reply Pratik,

I got the Solution but one Problem....

We can use BaseAdapter (MyAdapter extends BaseAdapter)
but m not getting how to use it....???

Do you have any clue???
I agree. Here's the link:
subject: Problem with Customised ListView
It's not a secret anymore!