I'm trying to setup google maps inside of BottomNavigationView tab using MvRx.
I have to questions:
What is the best pracice for setting up BottomNavigationView in MvRx?
Using the code below I managed to load the map once but the second time i open the tab i get the following error. Therefore i am wondering what the recommended way to setup google maps in a BottomNavigationView fragment using MvRx is?
Caused by: java.lang.IllegalArgumentException: Binary XML file line #7: Duplicate id 0x7f080089, tag null, or parent id 0xffffffff with another fragment for com.google.android.gms.maps.SupportMapFragment
My fragment looks like this:
class MapFragment : BaseFragment() {
private val mViewModel: ChatViewModel by fragmentViewModel()
override fun epoxyController() = simpleController(mViewModel) {state ->
mapView{
id("map")
}
}
}
Hello
I'm trying to setup google maps inside of BottomNavigationView tab using MvRx.
I have to questions:
My fragment looks like this:
And view:
Map fragment (Crashes on second inflate)
main_activity
MainActivity