Differences between ViewCompositionStrategy in Jetpack Compose interop

Viewed 226

What are the differences between the ViewCompositionStrategy in Jetpack compose when it comes to using Compose View in XML?

https://developer.android.com/jetpack/compose/interop/interop-apis#composition-strategy https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewCompositionStrategy

What ViewCompositionStrategy is needed when:

  1. <ComposeView> in an activity layout
  2. <ComposeView> in a fragment layout
  3. <ComposeView> in a custom view which is in a fragment (I assume same as above?)
  4. Pure compose view (no XML) in activity/fragment/custom view?
0 Answers
Related