Compare commits

...

2 Commits

Author SHA1 Message Date
f37db4ace0 added layout for end screen 2026-09-30 11:19:16 -04:00
64208bef11 fixed the levels 2026-09-29 11:30:07 -04:00
4 changed files with 85 additions and 3 deletions

View File

@@ -3,7 +3,9 @@
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />
<application
android:allowBackup="true"
@@ -64,6 +66,10 @@
android:name=".MakeCheckActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".EndActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
</application>
</manifest>

View File

@@ -0,0 +1,24 @@
package com.example.generator;
import android.os.Bundle;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
public class EndActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_end);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
}
}

View File

@@ -102,7 +102,7 @@ public class MakeCheckActivity extends AppCompatActivity {
EventsActivity.Data.setClimbLevels(levelsStr.isEmpty() ? 0 : Integer.parseInt(levelsStr));
String checkBoxesStr = CheckBoxObjects.getText().toString().trim();
EventsActivity.Data.setNumCheckBoxes(checkBoxesStr.isEmpty() ? 0 : Integer.parseInt(checkBoxesStr));
Intent intent = new Intent(this, MakeAutoActivity2.class);
Intent intent = new Intent(this, EndActivity.class);
startActivity(intent);
});

View File

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<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:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
tools:context=".EndActivity">
<TextView
android:id="@+id/textPine4"
android:layout_width="0dp"
android:layout_height="32dp"
android:ems="10"
android:text="generate config file"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="24sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/nextButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="8dp"
android:backgroundTint="@color/orangeMain"
android:text="Make file"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/backButton" />
<Button
android:id="@+id/backButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="4dp"
android:backgroundTint="@color/orangeMain"
android:text="Back"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/nextButton"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>