nicolas2k / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
1 stars 0 forks source link

No listener for CardScrollView during scrolling process #385

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

When a fling happens in a `CardScrollView`, I see the "zoomed out" view of a 
long list of cards scrolling by.  This part works fine as in the code below:

    mCardScrollView.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
        @Override
        public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
            if (mSimulatedScrollBar != null)
                mSimulatedScrollBar.setScrollPosition(position);
            }
            @Override
            public void onNothingSelected(AdapterView<?> parent) {
            }
        });

What is the expected output?

    I have a method to listen to the CardScrollView during movement of the fling operation.

What do you see instead?

    I don't receive any update when this is happening in the `OnItemSelectedListiner` until the fling stops.   The problem this causes is the list scrolls but until it "settles" I don't get any update on the list progress and thus can't respond in the foreground with a progress view.

What version of the product are you using? On what operating system?

    Glass XE12

Please provide any additional information below.

    The motivation behind this fix is my own class SimulatedScrollBar which I've implemented for CardScrollView, since none is available at the moment.

Original issue reported on code.google.com by johnarle...@gmail.com on 27 Jan 2014 at 5:45

GoogleCodeExporter commented 8 years ago
Hello,

Thanks for the report! However, I am going to close this bug as 
"WorkingAsIntended" as there are no card selected while the fling is occurring.

Regarding the CardScrollView indicator, please rest assured that this is 
something we're working on and I would suggest to "start" the feature request 
tracking this:
  https://code.google.com/p/google-glass-api/issues/detail?id=256

Best,
Alain

Original comment by ala...@google.com on 27 Jan 2014 at 5:50

GoogleCodeExporter commented 8 years ago
Okay but to be consistent with the rest of Android you should provide an on 
scroll listener for the list:

https://developer.android.com/reference/android/widget/AbsListView.OnScrollListe
ner.html

Original comment by johnarle...@gmail.com on 27 Jan 2014 at 5:57

GoogleCodeExporter commented 8 years ago

Original comment by allev...@google.com on 27 Jan 2014 at 6:00