width and height must be > 0
Hi I'm receiving this error often:
java.lang.IllegalArgumentException: width and height must be > 0
I think it has to do with me trying to use popView on a GONE view so I added a check to see if it is Visible but I still get this error often, not entirely sure why. Doesn't happen all the time.
Here is my check:
if ((pulseView.getVisibility()== View.VISIBLE)) {
popField.popView(pulseView);
}
I haven't added removal of view from parent view for this method : popView(view) , hence calling at again on the same view might cause issues. You might have to get the parent of the view and remove the view before calling on it again. In the meanwhile I'll change it so that it gets removed by default. Please let me know if this happens on fresh views i.e. Views on which the function hasn't been called at least once.