This commit is contained in:
ろむねこ 2024-01-17 17:55:00 +09:00
parent 72c09a2eef
commit a4527e5117
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 36 additions and 7 deletions

View File

@ -8,6 +8,10 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import com.google.android.material.appbar.MaterialToolbar;
import java.util.Objects;
/** /**
* A simple {@link Fragment} subclass. * A simple {@link Fragment} subclass.
* Use the {@link GeneratedQrFragment#newInstance} factory method to * Use the {@link GeneratedQrFragment#newInstance} factory method to
@ -36,4 +40,11 @@ public class GeneratedQrFragment extends Fragment {
// Inflate the layout for this fragment // Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_generated_qr, container, false); 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
}
} }

View File

@ -1,14 +1,32 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <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" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".GeneratedQrFragment" > tools:context=".GeneratedQrFragment" >
<!-- TODO: Update blank fragment layout --> <com.google.android.material.appbar.MaterialToolbar
<TextView android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="0dp"
android:text="@string/hello_blank_fragment" /> 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"/>
</FrameLayout>
<ImageView
android:id="@+id/result_bitmap_image_view"
android:layout_width="0dp"
android:layout_height="0dp"
android:src="@drawable/close_fill0_wght400_grad0_opsz24"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/toolbar" />
</androidx.constraintlayout.widget.ConstraintLayout>