I would like to hide activity indicator when it's clicked. how can I do it?
Go to your code page and press ctrl + A key and then press delete key. Next launch your application again. That will work perfectly…
Put the activityIndicator into a view and register the click event on that view.