Open JoelNieman opened 7 years ago
I had a resembling error. If I use a chart view (from a library), the particles will appear in the top left corner of the chart instead of the center. Any idea why this might be happening? No, but I solved it using the container of my view as anchor.
Great library. Having an issue with using it inside a ViewHolder though. Basically I have a recyclerView with 3 sections, in the 3rd (Footer) I have a pin centered on a map, among other things. The placement of the pin is the center point for where I want the particles emitted from.
My issue is, if I scroll quickly to the bottom of the recycler view to see the map, the particles are emitted from the correct location. However, if I slowly scroll down the recycler view, they will appear in the top left corner of the map instead. Seems really weird that it would do that. Any idea why this might be happening?
Below is the code for the fragment. Testing on a Samsung S7.
public class PredictionDayFragment extends Fragment implements SMTSliderView.OnSliderValueChangeListener, SMTRecyclerViewAdapter.OnAdapterListener, SMTToolbar.OnToolbarListener {
}