ChartProgressBar-Android
ChartProgressBar-Android copied to clipboard
selectBar(int index) This method does not work well.
selectBar(int index) This method does not work well. please help me! thanks you!
Hello,
can you add more details please, what is happening exactly?
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);
dataList.size()
Should be dataList.size() - 1
?
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.
Any update on this ?
It will simply crash so as @Afanbaby says... it's not working properly
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.
Hi every body, It's always saying size = 0 and then crash Can anybody will help me?