为了账号安全,请及时绑定邮箱和手机立即绑定

Required method destroyItem was not overridden

04-09 20:25:24.150 10848-10848/com.ash.viewpager E/AndroidRuntime: FATAL EXCEPTION: main
                                                                   java.lang.UnsupportedOperationException: Required method destroyItem was not overridden
                                                                       at android.support.v4.view.PagerAdapter.destroyItem(PagerAdapter.java:193)
                                                                       at android.support.v4.view.PagerAdapter.destroyItem(PagerAdapter.java:125)
                                                                       at com.ash.viewpager.MyPagerAdapter.destroyItem(MyPagerAdapter.java:51)
                                                                       at android.support.v4.view.ViewPager.populate(ViewPager.java:1111)
                                                                       at android.support.v4.view.ViewPager.populate(ViewPager.java:1025)
                                                                       at android.support.v4.view.ViewPager$3.run(ViewPager.java:254)
                                                                       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
                                                                       at android.view.Choreographer.doCallbacks(Choreographer.java:555)
                                                                       at android.view.Choreographer.doFrame(Choreographer.java:524)
                                                                       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
                                                                       at android.os.Handler.handleCallback(Handler.java:615)
                                                                       at android.os.Handler.dispatchMessage(Handler.java:92)
                                                                       at android.os.Looper.loop(Looper.java:213)
                                                                       at android.app.ActivityThread.main(ActivityThread.java:4787)
                                                                       at java.lang.reflect.Method.invokeNative(Native Method)
                                                                       at java.lang.reflect.Method.invoke(Method.java:511)
                                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
                                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)                                                                    at dalvik.system.NativeStart.main(Native Method)


正在回答

1 回答

要求方法destroyItem没有覆盖

0 回复 有任何疑惑可以回复我~
#1

ASH975 提问者

非常感谢!
2016-04-10 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Android攻城狮的第二门课(第1季)
  • 参与学习       111172    人
  • 解答问题       1457    个

本课程由浅入深地带您学会Android的常用控件的开发和使用

进入课程

Required method destroyItem was not overridden

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信