You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that in this case it cannot measure it's own height so Android Studio gets stuck with these exception:
java.util.concurrent.TimeoutException: Preview timed out while rendering the layout...
....
...
at com.lsjwzh.widget.recyclerviewpager.RecyclerViewPagerAdapter.onCreateViewHolder(RecyclerViewPagerAdapter.java:26)
Also, if you run an application you'll get memory leak and it is going to crash immediately. In some older versions when we used lib as a standalone library and added it as a module to our project everything was working fine.
Please, check out these and try to fix this issue.
The text was updated successfully, but these errors were encountered:
For those encountering the same issue: When using weights, you normally set the width or height to 0dp. For me, this made both my Android Studio and my app leak memory. When setting it to 1dp, this seems to be fixed.
There is a problem with the latest version of library, when for example you put RecyclerViewPager in this structure:
It seems that in this case it cannot measure it's own height so Android Studio gets stuck with these exception:
java.util.concurrent.TimeoutException: Preview timed out while rendering the layout...
....
...
at com.lsjwzh.widget.recyclerviewpager.RecyclerViewPagerAdapter.onCreateViewHolder(RecyclerViewPagerAdapter.java:26)
Also, if you run an application you'll get memory leak and it is going to crash immediately. In some older versions when we used lib as a standalone library and added it as a module to our project everything was working fine.
Please, check out these and try to fix this issue.
The text was updated successfully, but these errors were encountered: