feat: merge three camera modes into unified CameraActivity

- Added mode toggle button to switch between photo, watermark, and compose modes
- Integrated watermark functionality from WatermarkCameraActivity
- Integrated simple camera functionality from SimpleCameraActivity
- Updated MainActivity to launch CameraActivity directly
- Cleaned up AndroidManifest.xml by removing unused activities
- Updated layout with mode selection button
- All three camera modes now available in single unified interface
This commit is contained in:
xiajiid
2026-02-10 18:42:25 +08:00
parent 547d8a9375
commit e75c9f5c45
9 changed files with 192 additions and 856 deletions

View File

@@ -5,7 +5,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
tools:context=".CameraActivity">
<!-- CameraView for displaying the camera preview -->
<androidx.camera.view.PreviewView
@@ -35,6 +35,16 @@
android:orientation="horizontal"
android:gravity="center">
<!-- Mode button -->
<ImageButton
android:id="@+id/modeButton"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="16dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:src="@drawable/ic_camera"
android:contentDescription="Change mode" />
<!-- Capture button -->
<ImageButton
android:id="@+id/captureButton"