https://kotlinlang.org logo
Title
u

user

07/12/2022, 1:11 PM
Android Compose in an exsiting project is very slow at first time I Added compose to an existing project. I rewrited a fragment ui with compose , and when I'm starting the fragment it takes a long time to start. Adding a fragment from another fragment: val fragment = FragmentWithComposeUi() requireActivity().addFragment(fragment, R.id.fragment_container, "FragmentWithComposeUi") addFragment() function to add the fragment. fun FragmentActivity.addFragment(fragment: Fragment, container: Int, tag:String) { val currentFragment =...