Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to handle multiple clickable views in Listview?

$
0
0

Hi,

I need a way to handle multiple click-able area inside list item. For example as of now clicking the list item it showing the details of the list but i need a way to identify checkbox checked listener, button clicked listener for each item in the list.

Please someone shed a light on this for overriding the ItemClick of listview. Currently i am having below code. Onclick of list item it will get the details of the that particular item.

    protected ListView _taskListView = null;
    if (this._taskListView != null) {
                        this._taskListView .ItemClick += (object sender, AdapterView.ItemClickEventArgs e) => {
                            var taskDeatils = new Intent (this, typeof(TaskDetails));
                            taskDeatils .PutExtra ("NoteId", (this._notes [e.Position].NoteId).ToString());
                            this.StartActivity (taskDeatils );

                        };
                    }

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>