Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getChildFragmentManager() not found in kotlin

How to use the getChildFragmentManager() in kotlin fragment class?

I know its very basic question. But no documents found for this. I searched in google & SO but no results found.

like image 845
Ranjithkumar Avatar asked Dec 14 '22 20:12

Ranjithkumar


2 Answers

val adapterOBJ= YourAdapter(getChildFragmentManager()) // val means unmodifiable
like image 168
IntelliJ Amiya Avatar answered Jan 07 '23 09:01

IntelliJ Amiya


Just use childFragmentManager instead of getChildFragmentManager()

like image 34
iamkdblue Avatar answered Jan 07 '23 10:01

iamkdblue