etsy / AndroidStaggeredGrid

An Android staggered grid view which supports multiple columns with rows of varying sizes.
https://github.com/etsy/AndroidStaggeredGrid
4.76k stars 1.13k forks source link

incorrectly overrides package-private method with same name #158

Open RunCross opened 9 years ago

RunCross commented 9 years ago

I met this problem,

by Log Tag:dalvikvm
method Lcom/etsy/android/grid/ExtendableListView;.fillGap incorrectly overrides package-private method with same name in Landroid/widget/AbsListView;
method Lcom/etsy/android/grid/ExtendableListView;.getFooterViewsCount incorrectly overrides package-private method with same name in Landroid/widget/AbsListView;
method Lcom/etsy/android/grid/ExtendableListView;.getHeaderViewsCount incorrectly overrides package-private method with same name in Landroid/widget/AbsListView;
method Lcom/etsy/android/grid/ExtendableListView;.invokeOnItemScrollListener incorrectly overrides package-private method with same name in Landroid/widget/AbsListView;
method Lcom/etsy/android/grid/ExtendableListView;.rememberSyncState incorrectly overrides package-private method with same name in Landroid/widget/AdapterView;
method Lcom/etsy/android/grid/ExtendableListView;.reportScrollStateChange incorrectly overrides package-private method with same name in Landroid/widget/AbsListView;

May I ask how to solve this problem.

Android SDK 4.4.2(API 19) JDK:1.7 <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="19" />

Naitbit commented 9 years ago

This issue (with fillGap) causes crashes on Android 5.0 when using support v7:

java.lang.AbstractMethodError: abstract method "void android.widget.AbsListView.fillGap(boolean)" at android.widget.AbsListView.trackMotionScroll(AbsListView.java:4968) at android.widget.AbsListView.onGenericMotionEvent(AbsListView.java:4008) at android.view.View.dispatchGenericMotionEventInternal(View.java:8493) at android.view.View.dispatchGenericMotionEvent(View.java:8474) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2024) at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1975) at android.view.View.dispatchGenericMotionEvent(View.java:8467) at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchGenericMotionEvent(PhoneWindow.java:2322) at com.android.internal.policy.impl.PhoneWindow.superDispatchGenericMotionEvent(PhoneWindow.java:1702) at android.app.Activity.dispatchGenericMotionEvent(Activity.java:2775) at android.support.v7.app.ActionBarActivityDelegateICS$WindowCallbackWrapper.dispatchGenericMotionEvent(ActionBarActivityDelegateICS.java:278) at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchGenericMotionEvent(PhoneWindow.java:2289) at android.view.View.dispatchPointerEvent(View.java:8580) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4021) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3887) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3449) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3502) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3468) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3578) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3476) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3635) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3449) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3502) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3468) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3476) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3449) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5701) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5675)

tnguyenquy commented 9 years ago

I got the same error as well

Frank1234 commented 9 years ago

me too. Thinking about switching to recyclerview.

asweigart commented 9 years ago

I have also encountered this error, and googled it to find this page. It seems to be intermittent and related to the StaggeredView

nesquena commented 9 years ago

Apparently the issue may have to do with how you scroll on the emulator and doesn't happen on the device. From a student in the Android bootcamp we run:

This appears to be only present when not dragging and moving on the simulator, but swiping with the trackpad. I don't have a phone to test this out on, but it works perfectly fine with a click + drag.

hugogz commented 9 years ago

i'm also facing a similar problem, with Android 5.0.2 in a Nexus 7 when trying to do do EtsyStaggeredGridView.scrollListBy(int). Did anyone manage to get a solution? please share it with us if so, thanks

tnguyenquy commented 9 years ago

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García notifications@github.com wrote:

i'm also facing a similar problem, with Android 5.0.2 in a Nexus 7 when trying to do do EtsyStaggeredGridView.scrollListBy(int). Did anyone manage to get a solution? please share it with us if so, thanks

— Reply to this email directly or view it on GitHub https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78278863 .

hugogz commented 9 years ago

sorry tnguyenquy but what is Nathan's answer? i can't find it here in this issue board...

On Wed, Mar 11, 2015 at 4:30 PM, tnguyenquy notifications@github.com wrote:

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García notifications@github.com wrote:

i'm also facing a similar problem, with Android 5.0.2 in a Nexus 7 when trying to do do EtsyStaggeredGridView.scrollListBy(int). Did anyone manage to get a solution? please share it with us if so, thanks

— Reply to this email directly or view it on GitHub < https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78278863

.

— Reply to this email directly or view it on GitHub https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78286545 .

tnguyenquy commented 9 years ago

See below:

Apparently the issue may have to do with how you scroll on the emulator and doesn't happen on the device. "This appears to be only present when not dragging and moving on the simulator, but swiping with the trackpad. I don't have a phone to test this out on, but it works perfectly fine with a click + drag."

On Wed, Mar 11, 2015, 9:56 AM Hugo García notifications@github.com wrote:

sorry tnguyenquy but what is Nathan's answer? i can't find it here in this issue board...

On Wed, Mar 11, 2015 at 4:30 PM, tnguyenquy notifications@github.com wrote:

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García notifications@github.com wrote:

i'm also facing a similar problem, with Android 5.0.2 in a Nexus 7 when trying to do do EtsyStaggeredGridView.scrollListBy(int). Did anyone manage to get a solution? please share it with us if so, thanks

— Reply to this email directly or view it on GitHub <

https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78278863

.

— Reply to this email directly or view it on GitHub < https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78286545

.

— Reply to this email directly or view it on GitHub https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78292193 .

hugogz commented 9 years ago

ok it seems the issue is not the same for me because my problem is happening using a device, i think maybe i should open a new issue... thanks!

On Wed, Mar 11, 2015 at 4:57 PM, tnguyenquy notifications@github.com wrote:

See below:

Apparently the issue may have to do with how you scroll on the emulator and doesn't happen on the device. "This appears to be only present when not dragging and moving on the simulator, but swiping with the trackpad. I don't have a phone to test this out on, but it works perfectly fine with a click + drag."

On Wed, Mar 11, 2015, 9:56 AM Hugo García notifications@github.com wrote:

sorry tnguyenquy but what is Nathan's answer? i can't find it here in this issue board...

On Wed, Mar 11, 2015 at 4:30 PM, tnguyenquy notifications@github.com wrote:

Just look at Nathan's answer.

On Wed, Mar 11, 2015, 8:54 AM Hugo García notifications@github.com wrote:

i'm also facing a similar problem, with Android 5.0.2 in a Nexus 7 when trying to do do EtsyStaggeredGridView.scrollListBy(int). Did anyone manage to get a solution? please share it with us if so, thanks

— Reply to this email directly or view it on GitHub <

https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78278863

.

— Reply to this email directly or view it on GitHub <

https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78286545

.

— Reply to this email directly or view it on GitHub < https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78292193

.

— Reply to this email directly or view it on GitHub https://github.com/etsy/AndroidStaggeredGrid/issues/158#issuecomment-78292492 .

JGeraldoLima commented 9 years ago

hey @hugogz I'm having the same problem and with a device too! It is just a particular moviment on scrolling the screen to get this error :/ any other gesture works fine

namanjain1993 commented 8 years ago

I can confirm, this issue is only with trackpad, if u scroll holding click and swipe, it swipes flawlessly

castasat commented 5 years ago

This helped me with this issue, maybe will be useful for someone else:

  1. Open the Settings or Preferences dialog: On Windows or Linux, select File > Settings from the menu bar. On Mac OSX, select Android Studio > Preferences from the menu bar.
  2. Navigate to Build, Execution, Deployment > Instant Run.
  3. Uncheck the box next to Restart activity on code changes.
  4. Choose File > Invalidate Caches / Restart...
  5. Rebuild your project