bmarrdev / android-DecoView-charting

DecoView: Android arc based animated charting library
Apache License 2.0
991 stars 194 forks source link

In File SampleFragment4 #38

Closed Paridhi2502 closed 6 years ago

Paridhi2502 commented 6 years ago

Hi,

I am integrating you library in my project and I am facing one issue is that : chart is recreated many time like in recursive. I want to show chart will show one time and it will not get hide. I have remove the code

decoView.addEvent(new DecoEvent.Builder(EventType.EVENT_HIDE, false) .setIndex(mBackIndex) .setDelay(100) .setDuration(9000) .setListener(new DecoEvent.ExecuteEventListener() { @Override public void onEventStart(DecoEvent event) { }

                @Override
                public void onEventEnd(DecoEvent event) {

                    // decoView.setVisibility(View.VISIBLE);
                   // createTracks();
                  //  setupEvents();
                }
            })
            .build());

Above code recreate the track and event, So I just comment out. Please help me and resolve my issue asap.

Thanks!