@InfiniteRecursion thanks for the link, but I am working with
listview and in documentation, there is no method, with which we can disable the clicks or disable whole listview(that's not what I am trying to do, I am just trying to disable the clicks on all the items in one go and then enable them again)