Fixed
Status Update
Comments
cl...@google.com <cl...@google.com>
ap...@google.com <ap...@google.com> #2
As a workaround, have you tried the butterknife-gradle-plugin and using R2.layouts with your annotations?
https://github.com/JakeWharton/butterknife#library-projects
This will generate final IDs that you can use in your @ContentView annotation.
This will generate final IDs that you can use in your @ContentView annotation.
cl...@google.com <cl...@google.com> #3
R2 requires special handling for use by an annotation processor only. It's not a direct replacement for R as its value is effectively opaque.
na...@google.com <na...@google.com> #4
As #3 suggests, the "workaround" from #2 does not actually seem to work. Resources$NotFoundException
Description
LazyList has method:
LazyListScope.items(count: Int, key: ((index: Int) -> Any)? = null, contentType: (index: Int) -> Any? = { null }, itemContent: @Composable LazyItemScope.(index: Int) -> Unit)
,which is called from
paging-compose
library method:LazyListScope.items(items: LazyPagingItems<T>, key: ((item: T) -> Any)? = null, itemContent: @Composable LazyItemScope.(value: T?) -> Unit)
It uses the default value of
{ null }
forcontentType
. Please make it settable, so that we might improve performance of our layout.