GithubHelp home page GithubHelp logo

数组越界 about characterpickerview HOT 6 CLOSED

feiyangwei avatar feiyangwei commented on July 27, 2024
数组越界

from characterpickerview.

Comments (6)

imkarl avatar imkarl commented on July 27, 2024

方便贴一下错误日志吗?非常感谢!

from characterpickerview.

feiyangwei avatar feiyangwei commented on July 27, 2024

属性设置为循环
你可以直接将第二部分的数据数目设置为3个,测试
这是我的错误日志
E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
at java.util.ArrayList.get(ArrayList.java:306)
at LoopView.onDraw(LoopView.java:276)
at android.view.View.draw(View.java:13740)
at android.view.View.buildDrawingCache(View.java:12994)
at android.view.View.getDisplayList(View.java:12649)
at android.view.View.getDisplayList(View.java:12714)
at android.view.View.draw(View.java:13456)
at android.view.ViewGroup.drawChild(ViewGroup.java:2964)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2833)
at android.view.View.getDisplayList(View.java:12668)
at android.view.View.getDisplayList(View.java:12714)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:2946)

from characterpickerview.

feiyangwei avatar feiyangwei commented on July 27, 2024

参考了这个
https://github.com/saiwu-bigkoo/Android-PickerView.git
对比了一下没发现有什么区别,但是那个是好的

from characterpickerview.

imkarl avatar imkarl commented on July 27, 2024

本项目是在https://github.com/saiwu-bigkoo/Android-PickerView.git 基础上简化调用,以及一些UI微调。
该作者有经常更新,你也可以考虑哪个更适合你的需求。

以上bug晚点会修复,但这两天比较忙,没时间处理

from characterpickerview.

imkarl avatar imkarl commented on July 27, 2024

代码已升级,请确认是否已修复你遇到的问题。

from characterpickerview.

feiyangwei avatar feiyangwei commented on July 27, 2024

嗯,没问题了,灰常感谢

from characterpickerview.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.