Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

selectBar(int index) This method does not work well. #6

Open
Afanbaby opened this issue Dec 12, 2018 · 8 comments
Open

selectBar(int index) This method does not work well. #6

Afanbaby opened this issue Dec 12, 2018 · 8 comments

Comments

@Afanbaby
Copy link

selectBar(int index) This method does not work well.
please help me! thanks you!

@hadiidbouk
Copy link
Owner

Hello,

can you add more details please, what is happening exactly?

@Afanbaby
Copy link
Author

I would like to default that the last one is selected, but I set this method, no effect, or I use the wrong way.

   chartProgressBar.setDataList(dataList);
    chartProgressBar.build();
    chartProgressBar.selectBar(dataList.size());
    chartProgressBar.setOnBarClickedListener(this);

@hadiidbouk
Copy link
Owner

dataList.size() Should be dataList.size() - 1?

@Afanbaby
Copy link
Author

I set dataList.size() - 1,But it didn't work.
I would like to default that the last one is selected,
Run demo,It's also not easy to use.

@hadiidbouk
Copy link
Owner

Any update on this ?

@Shusshu
Copy link

Shusshu commented Nov 22, 2019

It will simply crash so as @Afanbaby says... it's not working properly

@IriscShih
Copy link

the issue is due to the selectBar is executed before the pins are set, which leads to pins.get((int) frameLayout.getTag()).setVisibility(View.VISIBLE); causes runtime exception cause of pins is empty. i have it working with postDelay on the selectBar ... but would be great if anyone had a better solution.

@punksbcha
Copy link

punksbcha commented Apr 6, 2021

Hi every body, It's always saying size = 0 and then crash
Can anybody will help me?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants