igor.wojda
10/28/2022, 6:25 PMMaterial You Dynamic Colors
(Material You) across whole app. They are working for the BottomNavBar
(in the Activity) but not for the Fragments content inside this Activity (see attached image) 🤔
I did:
DynamicColors.applyToActivitiesIfAvailable(this)
inside custom Application class onCreate
method
This is the Fragment code
class FavouriteFragment : BaseFragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
return ComposeView(requireContext()).apply {
setContent {
FavouriteScreen()
}
}
}
}
Here is my android-showcase project demonstrating this issue.
Any idea why this may be happening? What am I missing here?andrew
10/30/2022, 5:34 PM