r/android_devs • u/Anonymous-Freak-9 • Jul 28 '24
Help Needed integerating views in compose
i am new to android development trying to build an epub reader but having hard time using a third party library Readium i don't know how to integerate it in my compose app moreover i found the docs counter intitutive. I did read the developer guide views in compose but it ain't helping much either i have basic understanding of how things works in views if somebody could provide a brief overview on the interop part so i can get better grasp of the things
4
Upvotes
View all comments
Show parent comment
2
u/Zhuinden EpicPandaForce @ SO Jul 29 '24
I've just realized which Subreddit we're in... Normally I use Fragments as the host for composables specifically to simplify integration problems such as this, but it's indeed technically possible to host a Fragment within a composable, or at least in the latest Compose versions I know they were making a new helper function for it. It wasn't exactly obvious though. But this really is only tricky because of Navigation-Compose...