From fce7acfe3581e5bb13bf15debb4289a1735d12ff Mon Sep 17 00:00:00 2001 From: Isidro Henoch Date: Wed, 8 Dec 2021 02:09:47 -0600 Subject: WIP: Starts implementing the main activity - Removes the MainActivity and the shared code it was using - Adds the UnitsActivity - Implements the Map/List toggle functionality --- .../TrackerMap/android/map/MapFragment.kt | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt') diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt new file mode 100644 index 0000000..0d4d91a --- /dev/null +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/map/MapFragment.kt @@ -0,0 +1,27 @@ +package mx.trackermap.TrackerMap.android.map + +import android.os.Bundle +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import androidx.fragment.app.Fragment +import mx.trackermap.TrackerMap.android.databinding.MapFragmentBinding + +class MapFragment: Fragment() { + private var _binding: MapFragmentBinding? = null + private val binding get() = _binding!! + + override fun onCreateView( + inflater: LayoutInflater, + container: ViewGroup?, + savedInstanceState: Bundle? + ): View { + _binding = MapFragmentBinding.inflate(inflater, container, false) + return binding.root + } + + override fun onDestroyView() { + super.onDestroyView() + _binding = null + } +} \ No newline at end of file -- cgit v1.2.3