GithubHelp home page GithubHelp logo

setItemIndex error about wheelpicker HOT 6 CLOSED

aigestudio avatar aigestudio commented on August 17, 2024
setItemIndex error

from wheelpicker.

Comments (6)

recwert avatar recwert commented on August 17, 2024

我这边发现setItemIndex方法会有问题,当我第一次进入Activity,在onCreate中设置的时候还是正常的,但是一旦我有滑动过WheelHourPicker,再去设置setItemIndex就会出现显示错误,而且找不到是什么错误规律,有时候明明设置6,却显示3,明明设置18,却显示23,如果设置19以上,就直接看不见了

from wheelpicker.

AigeStudio avatar AigeStudio commented on August 17, 2024

fix ,cn.aigestudio.wheelpicker:WheelPicker:1.0.3

from wheelpicker.

r17171709 avatar r17171709 commented on August 17, 2024

愛哥,setItemIndex在初始化完成之后就不能再设置了啊。我转了一会之后想回到某一个位置,最后显示出来的都正确

from wheelpicker.

AigeStudio avatar AigeStudio commented on August 17, 2024

1.0.3?

from wheelpicker.

r17171709 avatar r17171709 commented on August 17, 2024

是的

from wheelpicker.

duanwencheng avatar duanwencheng commented on August 17, 2024

爱哥,drawbackground为什么注掉了,我打开后,发现只有默认时是有背景的,一滑动背景就消失了. @OverRide
protected void drawBackground(Canvas canvas) {
mPaint.setColor(Color.RED);
rectCurItem.set(rectCurItem.left,rectCurItem.top,rectCurItem.right-10,rectCurItem.bottom);
canvas.drawRect(rectCurItem,mPaint);
}`

from wheelpicker.

Related Issues (20)

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.