I'm trying to access native ListView methods. I need to cast a Ti ListView to a native Android ListView to access the native methods.
I'm using the following link as a reference: http://docs.appcelerator.com/platform/latest/#!/guide/Android_Hyperloop_Programming_Guide
You can use the snippet of code:
Running the above code will give you the following error:
You can also can get the Hyperloop-Examples project from appcelerator's github page and replace the button.js controller in the project with the button.js file I attached.
The reason why I want to access native methods on the ListView is to get the count of visible ListViewRows in the ListView when searching through the ListView with a SearchView. It seems that I can only get the count of all(visible and hidden) ListViewRows in the ListView. If you have a solution for this without using Hyperloop, I'd love to hear that as well.
Thank you in advanced.