StackLayoutManager icon indicating copy to clipboard operation
StackLayoutManager copied to clipboard

divide by zero

Open DongjingZhong opened this issue 4 years ago • 3 comments

Hi friend ,I like your project ,but I got this issue ,could you please take a look ?Thank you so much Process: com.gearsrun.stackviewapplication, PID: 18291 java.lang.ArithmeticException: divide by zero at com.gearsrun.stackviewapplication.stacklayoutmanager.DefaultLayout.getFirstVisibleItemTop(DefaultLayout.kt:66) at com.gearsrun.stackviewapplication.stacklayoutmanager.DefaultLayout.doLayout(DefaultLayout.kt:32) at com.gearsrun.stackviewapplication.stacklayoutmanager.StackLayoutManager.loadItemView(StackLayoutManager.kt:374) at com.gearsrun.stackviewapplication.stacklayoutmanager.StackLayoutManager.onLayoutChildren(StackLayoutManager.kt:298)

DongjingZhong avatar Aug 12 '21 18:08 DongjingZhong

same issue

shahzaibkhan471 avatar Nov 21 '21 20:11 shahzaibkhan471

yeah, same issues happens when recyclerview height is set to wrap_content

aayush0208 avatar Apr 05 '22 07:04 aayush0208

Set the ReciclerView width to match_parent and you are good to go. Wrap it into a Relative layout if needed.

nicodiansk avatar May 17 '22 10:05 nicodiansk