Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Customised ListView

 
Prajkti Khadse
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 136
Android Chrome Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Prajkti Khadse
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic