diff --git a/.DS_Store b/.DS_Store index d09b377..f475618 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/android/.gradle/8.5/executionHistory/executionHistory.bin b/android/.gradle/8.5/executionHistory/executionHistory.bin index 508368f..bc564d3 100644 Binary files a/android/.gradle/8.5/executionHistory/executionHistory.bin and b/android/.gradle/8.5/executionHistory/executionHistory.bin differ diff --git a/android/.gradle/8.5/executionHistory/executionHistory.lock b/android/.gradle/8.5/executionHistory/executionHistory.lock index 0f6277c..877c539 100644 Binary files a/android/.gradle/8.5/executionHistory/executionHistory.lock and b/android/.gradle/8.5/executionHistory/executionHistory.lock differ diff --git a/android/.gradle/8.5/fileHashes/fileHashes.bin b/android/.gradle/8.5/fileHashes/fileHashes.bin index b5390e3..e6d8e7b 100644 Binary files a/android/.gradle/8.5/fileHashes/fileHashes.bin and b/android/.gradle/8.5/fileHashes/fileHashes.bin differ diff --git a/android/.gradle/8.5/fileHashes/fileHashes.lock b/android/.gradle/8.5/fileHashes/fileHashes.lock index 35955aa..9c4a4bf 100644 Binary files a/android/.gradle/8.5/fileHashes/fileHashes.lock and b/android/.gradle/8.5/fileHashes/fileHashes.lock differ diff --git a/android/.gradle/8.5/fileHashes/resourceHashesCache.bin b/android/.gradle/8.5/fileHashes/resourceHashesCache.bin index 520d066..1faa1d5 100644 Binary files a/android/.gradle/8.5/fileHashes/resourceHashesCache.bin and b/android/.gradle/8.5/fileHashes/resourceHashesCache.bin differ diff --git a/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock index aad4f8a..7900dd5 100644 Binary files a/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/android/.gradle/buildOutputCleanup/outputFiles.bin b/android/.gradle/buildOutputCleanup/outputFiles.bin index 7aa3d7a..ce44734 100644 Binary files a/android/.gradle/buildOutputCleanup/outputFiles.bin and b/android/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/android/.gradle/file-system.probe b/android/.gradle/file-system.probe index 3821b15..615bfff 100644 Binary files a/android/.gradle/file-system.probe and b/android/.gradle/file-system.probe differ diff --git a/android/.idea/misc.xml b/android/.idea/misc.xml index d15a481..e756225 100644 --- a/android/.idea/misc.xml +++ b/android/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index f802450..baf3e7d 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -30,6 +30,9 @@ + \ No newline at end of file diff --git a/android/app/src/main/java/org/tensorflow/lite/examples/poseestimation/HeightSelectionActivity.kt b/android/app/src/main/java/org/tensorflow/lite/examples/poseestimation/HeightSelectionActivity.kt index 84f0974..5b87e8e 100644 --- a/android/app/src/main/java/org/tensorflow/lite/examples/poseestimation/HeightSelectionActivity.kt +++ b/android/app/src/main/java/org/tensorflow/lite/examples/poseestimation/HeightSelectionActivity.kt @@ -84,7 +84,7 @@ class HeightSelectionActivity : AppCompatActivity() { private fun setupClickListeners() { nextButton.setOnClickListener { - val intent = Intent(this, MainActivity::class.java) + val intent = Intent(this, LoginActivity::class.java) intent.putExtra("selected_gender", selectedGender) intent.putExtra("selected_age", selectedAge) intent.putExtra("selected_weight", selectedWeight) diff --git a/android/app/src/main/java/org/tensorflow/lite/examples/poseestimation/LoginActivity.kt b/android/app/src/main/java/org/tensorflow/lite/examples/poseestimation/LoginActivity.kt new file mode 100644 index 0000000..d1e289b --- /dev/null +++ b/android/app/src/main/java/org/tensorflow/lite/examples/poseestimation/LoginActivity.kt @@ -0,0 +1,60 @@ +package org.tensorflow.lite.examples.poseestimation + +import android.content.Intent +import android.os.Bundle +import android.widget.Toast +import androidx.appcompat.app.AppCompatActivity +import com.google.android.material.textfield.TextInputEditText +import android.widget.Button +import android.widget.TextView +import android.widget.EditText + +class LoginActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_login) + + // 获取从上一个页面传递的数据 + val selectedGender = intent.getStringExtra("selected_gender") + val selectedAge = intent.getIntExtra("selected_age", 0) + val selectedWeight = intent.getIntExtra("selected_weight", 0) + val selectedHeight = intent.getIntExtra("selected_height", 0) + + // 绑定控件 + val emailEdit = findViewById(R.id.editEmail) + val passwordEdit = findViewById(R.id.editPassword) + val loginBtn = findViewById