<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:padding="16dp"
    tools:context=".LocationActivity">

    <TextView
        android:id="@+id/tv_location_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Location Tracking"
        android:textSize="24sp"
        android:textStyle="bold"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:layout_marginTop="16dp" />

    <TextView
        android:id="@+id/tv_latitude_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Latitude:"
        android:textSize="18sp"
        android:layout_marginTop="32dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/tv_location_title" />

    <TextView
        android:id="@+id/tv_latitude_value"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:textSize="18sp"
        android:textStyle="bold"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/tv_latitude_label"
        app:layout_constraintTop_toTopOf="@id/tv_latitude_label"
        tools:text="0.000000" />

    <TextView
        android:id="@+id/tv_longitude_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Longitude:"
        android:textSize="18sp"
        android:layout_marginTop="16dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/tv_latitude_label" />

    <TextView
        android:id="@+id/tv_longitude_value"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:textSize="18sp"
        android:textStyle="bold"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/tv_longitude_label"
        app:layout_constraintTop_toTopOf="@id/tv_longitude_label"
        tools:text="0.000000" />

    <TextView
        android:id="@+id/tv_accuracy_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Accuracy (m):"
        android:textSize="18sp"
        android:layout_marginTop="16dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/tv_longitude_label" />

    <TextView
        android:id="@+id/tv_accuracy_value"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:textSize="18sp"
        android:textStyle="bold"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/tv_accuracy_label"
        app:layout_constraintTop_toTopOf="@id/tv_accuracy_label"
        tools:text="0.0" />

    <TextView
        android:id="@+id/tv_last_update_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Last Update:"
        android:textSize="18sp"
        android:layout_marginTop="16dp"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/tv_accuracy_label" />

    <TextView
        android:id="@+id/tv_last_update_value"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:textSize="18sp"
        android:textStyle="bold"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/tv_last_update_label"
        app:layout_constraintTop_toTopOf="@id/tv_last_update_label"
        tools:text="N/A" />

    <Button
        android:id="@+id/btn_start_location_updates"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:text="Start Location Updates"
        android:layout_marginTop="32dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/tv_last_update_value" />

    <Button
        android:id="@+id/btn_stop_location_updates"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:text="Stop Location Updates"
        android:layout_marginTop="16dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/btn_start_location_updates" />

</androidx.constraintlayout.widget.ConstraintLayout>
