Skip to content

Instantly share code, notes, and snippets.

@marinat
Created September 12, 2018 08:18
Show Gist options
  • Save marinat/301c50dfcf51c6ce1ccdee3604f8f2a3 to your computer and use it in GitHub Desktop.
Save marinat/301c50dfcf51c6ce1ccdee3604f8f2a3 to your computer and use it in GitHub Desktop.
override fun onActivityCreated(savedInstanceState: Bundle?) {
super.onActivityCreated(savedInstanceState)
UiUtils.hideKeyboard(activity!!)
fab.setOnClickListener {
presenter.myLocationButtonClicked()
}
city_name.setOnClickListener {
presenter.citySearchClicked()
}
map_view.onCreate(savedInstanceState)
map_view.onResume()
map_view?.getMapAsync {
googleMap = it
googleMap.clear()
googleMap.uiSettings.isMyLocationButtonEnabled = false
clusterManager = ClusterManager(activity, googleMap)
googleMap.setOnCameraIdleListener(clusterManager)
googleMap.setOnMarkerClickListener(clusterManager)
.....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment