Davide Giuseppe Farella
04/02/2023, 8:06 AMitems
function to use LazyPagingItems
inside a LazyGrid
, from the popular TiVi repo.
Function here
After updating from Compose 1.4-rc to stable, I got this exception (full in thread)
java.lang.ArrayIndexOutOfBoundsException: length=3; index=-1I have no clue what’s the reason 😄 Any idea?
GridItemSpan(0)
->
GridItemSpan(1)
fixed it.
I got some hints looking at the source code. Do you foresee any issue with that?efemoney
04/02/2023, 9:34 AMDavide Giuseppe Farella
04/02/2023, 9:35 AMStylianos Gakis
04/02/2023, 10:47 AMDavide Giuseppe Farella
04/02/2023, 11:05 AMandylamax
04/03/2023, 9:58 AMDavide Giuseppe Farella
04/03/2023, 10:00 AMStylianos Gakis
04/03/2023, 10:03 AMDavide Giuseppe Farella
04/03/2023, 10:04 AMStylianos Gakis
04/03/2023, 10:09 AMandylamax
04/03/2023, 11:19 AMStylianos Gakis
04/03/2023, 12:17 PMandylamax
04/03/2023, 1:24 PMStylianos Gakis
04/03/2023, 1:37 PMNow, if someone starts by saying that they are using Compose Android, it is safe to assume that they are currently working on an Android application. And if at that time it is unknown to where that is a general compose question or not, it is best to ask at a much specific audience.I am sorry but I do not agree with this at all. It’s not safe to assume so since in this very particular case we noticed that this question was answered using generic compose knowledge, nothing special about compose for Android. And therefore it is something that someone may read while browsing the #compose channel and they’ll learn something new, without necessarily working on Android themselves.
If things you are asking are shareable in Desktop and Android, then best place to ask these kind of questions should be in compose-desktopThis is yet another thing I wholeheartedly disagree with. So if I use something that exists in Android, but also happens to exist in desktop but it does not exist in other platforms, I will have to ask on -desktop where my question has no significant tie with the desktop specific APIs, and I will get to ask that question to a much smaller audience, resulting in me most likely not getting the help that I need. I am so disappointed that we have to have such conversations here too, feels like SOE all over again, where instead of helping each other we have to police where we post questions due to minor nit-picks like if the LazyGrid API actually exists in all platforms or if there’s one (much less used!) platform which doesn’t include it therefore we need to limit our reach and the audience which is going to see it, which will result both in less people helping out and less people seeing that question therefore less people also learning something for themselves.
andylamax
04/03/2023, 1:43 PM