diff --git a/app/src/main/java/com/example/childguard/GeneratedQrFragment.java b/app/src/main/java/com/example/childguard/GeneratedQrFragment.java
index ccc1980..266c9af 100644
--- a/app/src/main/java/com/example/childguard/GeneratedQrFragment.java
+++ b/app/src/main/java/com/example/childguard/GeneratedQrFragment.java
@@ -8,6 +8,10 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
+import com.google.android.material.appbar.MaterialToolbar;
+
+import java.util.Objects;
+
/**
* A simple {@link Fragment} subclass.
* Use the {@link GeneratedQrFragment#newInstance} factory method to
@@ -36,4 +40,11 @@ public class GeneratedQrFragment extends Fragment {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_generated_qr, container, false);
}
+
+ @Override
+ public void onViewCreated(View view, Bundle savedInstanceState) {
+ MaterialToolbar toolbar = view.findViewById(R.id.toolbar);
+ toolbar.back
+
+ }
}
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_generated_qr.xml b/app/src/main/res/layout/fragment_generated_qr.xml
index ecb6800..78660e2 100644
--- a/app/src/main/res/layout/fragment_generated_qr.xml
+++ b/app/src/main/res/layout/fragment_generated_qr.xml
@@ -1,14 +1,32 @@
-
+ tools:context=".GeneratedQrFragment" >
-
-
+ android:layout_height="0dp"
+ android:background="@color/white"
+ android:elevation="4dp"
+ android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:title="Preview"/>
-
\ No newline at end of file
+
+
+
+
\ No newline at end of file