From 272931c03788ce6cbd318f664f92989f8bc18980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Wed, 17 Jan 2024 18:07:47 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=8D=E3=83=BC=E3=83=A0=E3=81=AA?= =?UTF-8?q?=E3=81=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...rFragment.java => GenerateQrFragment.java} | 20 ++++++++----------- ...erated_qr.xml => fragment_generate_qr.xml} | 2 +- 2 files changed, 9 insertions(+), 13 deletions(-) rename app/src/main/java/com/example/childguard/{GeneratedQrFragment.java => GenerateQrFragment.java} (61%) rename app/src/main/res/layout/{fragment_generated_qr.xml => fragment_generate_qr.xml} (97%) diff --git a/app/src/main/java/com/example/childguard/GeneratedQrFragment.java b/app/src/main/java/com/example/childguard/GenerateQrFragment.java similarity index 61% rename from app/src/main/java/com/example/childguard/GeneratedQrFragment.java rename to app/src/main/java/com/example/childguard/GenerateQrFragment.java index 266c9af..ce9915f 100644 --- a/app/src/main/java/com/example/childguard/GeneratedQrFragment.java +++ b/app/src/main/java/com/example/childguard/GenerateQrFragment.java @@ -8,22 +8,18 @@ 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 + * Use the {@link GenerateQrFragment#newInstance} factory method to * create an instance of this fragment. */ -public class GeneratedQrFragment extends Fragment { +public class GenerateQrFragment extends Fragment { - public GeneratedQrFragment() { + public GenerateQrFragment() { // Required empty public constructor } - public static GeneratedQrFragment newInstance() { - GeneratedQrFragment fragment = new GeneratedQrFragment(); + public static GenerateQrFragment newInstance() { + GenerateQrFragment fragment = new GenerateQrFragment(); Bundle args = new Bundle(); fragment.setArguments(args); return fragment; @@ -38,13 +34,13 @@ public class GeneratedQrFragment extends Fragment { public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment - return inflater.inflate(R.layout.fragment_generated_qr, container, false); + return inflater.inflate(R.layout.fragment_generate_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_generate_qr.xml similarity index 97% rename from app/src/main/res/layout/fragment_generated_qr.xml rename to app/src/main/res/layout/fragment_generate_qr.xml index 88198fd..27933f9 100644 --- a/app/src/main/res/layout/fragment_generated_qr.xml +++ b/app/src/main/res/layout/fragment_generate_qr.xml @@ -4,7 +4,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".GeneratedQrFragment" > + tools:context=".GenerateQrFragment" >