MindKeep / app / src / main / res / layout / fragment_ar_follow_path.xml
fragment_ar_follow_path.xml
Raw
<layout 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:id="@+id/fragment_ar_follow_path"
    tools:context=".features.arnavigation.ui.ArFollowPathFragment">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <android.opengl.GLSurfaceView
            android:id="@+id/surfaceview"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_gravity="top"/>

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="horizontal"
            android:layout_margin="20dp" >

            <Button
                android:text="@string/resolve_btn"
                android:id="@+id/resolveButton"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintLeft_toLeftOf="parent"
                android:backgroundTint="@color/secondary_light_high_contrast"
                android:textColor="@color/on_primary_container_light" />

            <Button
                android:text="@string/complete_btn"
                android:id="@+id/completeBtn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintRight_toRightOf="parent"
                android:backgroundTint="@color/secondary_light_high_contrast"
                android:textColor="@color/on_primary_container_light" />

            <!-- Display current task name -->
            <TextView
                android:id="@+id/taskName"
                style="@style/TextAppearance.AppCompat.Title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="16dp"
                android:layout_marginTop="4dp"
                android:background="@drawable/semi_transparent_background"
                android:gravity="center"
                android:padding="8dp"
                android:textColor="@color/on_primary_container_light"
                android:textStyle="normal|bold"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"
                app:layout_constraintTop_toBottomOf="@id/completeBtn"
                tools:text="I'm a task title" />
        </androidx.constraintlayout.widget.ConstraintLayout>

    </RelativeLayout>
</layout>