cipheroidharshal / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

shouldDelay is not working for the Controls which are Extending AdapterViews directly #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create Custom View Which extends the AdapterView
2. Sets the Adapters on the custom View
3. Use shouldDelay method in getView().....

What is the expected output? What do you see instead?
shouldDelay should work...

What version of the product are you using? On what operating system?
android-query-0.21.7

Please provide any additional information below.
com.androidquery.util.Common

shouldDelay(............)

else if(parent instanceof AbsListView){
            AbsListView lv = (AbsListView) parent;
            sl = new Common();
            lv.setOnScrollListener(sl);
            lv.setTag(AQuery.TAG_SCROLL_LISTENER, sl);  
        }

AbsListView extending the AdapterView so any view which are not coming from 
this route will not work 

Original issue reported on code.google.com by humashan...@gmail.com on 1 Jun 2012 at 11:21

GoogleCodeExporter commented 8 years ago
The adapters view itself doesn't have onscrolllistener. Because there's no way 
to test if the view is scrolling, or that the view itself has no concept of 
scrolling, the shouldDelay method doesn't make sense in that context.

However if you can provide some code or use behavior of your custom view, I can 
take a look and see if there's way to support that pattern. :)

Original comment by tinyeeliu@gmail.com on 20 Jun 2012 at 3:18