This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Problem with Customised ListView" Watch "Problem with Customised ListView" New topic
Author

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???
 
wood burning stoves
 
subject: Problem with Customised ListView
 
Similar Threads
How to show a title to a ListView
Question on ListView
How to use custom color for each textview in listview that extends SimpleAdapter in Android ?
webview help......
How to get View from customised ListView?