I am trying to do a tab layout same in Play Store. I got to display the tab layout using a fragments and viewpager from androidhive. However, I can\'t implement google maps
This is the Kotlin way:
In fragment_map.xml you should have:
fragment_map.xml
In your MapFragment.kt you should have:
MapFragment.kt
private fun setupMap() { (childFragmentManager.findFragmentById(R.id.map) as SupportMapFragment?)!!.getMapAsync(this) }
Call setupMap() in onCreateView.
setupMap()
onCreateView