From d2ee6a21355c390a4aaefc6ea847060c8e47c6ae 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/devices/DevicesFragment.kt | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesFragment.kt (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices') diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesFragment.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesFragment.kt new file mode 100644 index 0000000..7e09b17 --- /dev/null +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesFragment.kt @@ -0,0 +1,27 @@ +package mx.trackermap.TrackerMap.android.devices + +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.DevicesFragmentBinding + +class DevicesFragment: Fragment() { + private var _binding: DevicesFragmentBinding? = null + private val binding get() = _binding!! + + override fun onCreateView( + inflater: LayoutInflater, + container: ViewGroup?, + savedInstanceState: Bundle? + ): View { + _binding = DevicesFragmentBinding.inflate(inflater, container, false) + return binding.root + } + + override fun onDestroyView() { + super.onDestroyView() + _binding = null + } +} \ No newline at end of file -- cgit v1.2.3