I have an AbsListView in my project and I have a getView method which is defined like this:
public abstract View getView (int position, View convertView, ViewGroup parent) {}
Now, what's the correct way to find the parent AbsListView from within the getView() method?
(I assume you mean you have custom implementation of abstract AbsListView) :
Then in your adapter use
parent
parameter ofgetView
to refer to your custom AbsListView, i.e. :The idea of accessing your AdapterView from the adapter does not seem too good to me, you should normally use your adapter to manage the data, and supply your AdapterView with it.