Rca/fix UI #15
| 
						 | 
				
			
			@ -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
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -1,14 +1,32 @@
 | 
			
		|||
<?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"
 | 
			
		||||
    android:layout_width="match_parent"
 | 
			
		||||
    android:layout_height="match_parent"
 | 
			
		||||
    tools:context=".GeneratedQrFragment">
 | 
			
		||||
    tools:context=".GeneratedQrFragment" >
 | 
			
		||||
 | 
			
		||||
    <!-- TODO: Update blank fragment layout -->
 | 
			
		||||
    <TextView
 | 
			
		||||
    <com.google.android.material.appbar.MaterialToolbar
 | 
			
		||||
        android:id="@+id/toolbar"
 | 
			
		||||
        android:layout_width="match_parent"
 | 
			
		||||
        android:layout_height="match_parent"
 | 
			
		||||
        android:text="@string/hello_blank_fragment" />
 | 
			
		||||
        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"/>
 | 
			
		||||
 | 
			
		||||
</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>
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user