Status Update
Comments
ha...@reddit.com <ha...@reddit.com> #2
that way will be cool and user friendly.
ma...@google.com <ma...@google.com> #3
Also having the option to either pan or zoom with the scroll wheel would be useful.
ry...@google.com <ry...@google.com> #5
I need mouse wheel to operate zooming in and out.
I have wait for several weeks already.
develop from Beijing China
I have wait for several weeks already.
develop from Beijing China
ha...@reddit.com <ha...@reddit.com> #6
Mousewheel zooming please! :)
Description
Steps to Reproduce or Code Sample to Reproduce:
See MainActivity in attached sample project, or:
Note: RV refers to
RecyclerView
RecyclerView
RecyclerView
are emptyFrameLayout
sonBindViewHolder
of the RV adapter, createComposeView
and add it as a child to theFrameLayout
. CallsetContent
on theComposeView
with arbitrary layout (e.g. coloredBox
)notifyItemChanged(0, Any())
Behavior:
What I would expect to happen: No crash happens
What actually happens:
onBindViewHolder
call, theparent
field of theRecyclerView
item view will benull
, but itsmAttachInfo
will not benull
ComposeView
is added to the item view, itsisAttachedToWindow
will be true, and it will try to create a composition.ViewTreeLifecycleOwner
usingView.findViewTreeLifecycleOwner()
which tries walking up the view hierarchy to obtain the owner from the root view.parent
,View.findViewTreeLifecycleOwner()
returns null, andView.createLifecycleAwareWindowRecomposer()
throws and crashes the app.Stack trace (if applicable):