Compare commits

...

50 Commits

Author SHA1 Message Date
866dbc49e3 Fix: Apply updated .gitignore rules 2026-08-31 12:51:54 -04:00
9f4487194a Fix: Apply updated .gitignore rules 2026-08-31 12:51:23 -04:00
d5ea5c2702 Fix: Apply updated .gitignore rules 2026-08-31 12:49:33 -04:00
4bdc1b24d4 Update .gitignore with Android Studio template 2026-08-31 11:22:47 -04:00
8c1ea8bfeb Add .gitignore for Android project files 2026-08-31 10:50:35 -04:00
7a53371b03 fixed tabs 2026-08-27 14:13:43 -04:00
cf1d87b438 tab test 2026-08-26 13:38:01 -04:00
0d56a68228 Added a lot 2026-08-09 19:16:29 -04:00
2f0ef54550 Added a lot 2026-08-09 18:56:35 -04:00
f88fd58b97 worked on a lot of nothing 2026-07-31 11:59:57 -04:00
0e0e517491 worked on a lot of nothing 2026-07-30 20:17:41 -04:00
28f78cac54 worked on a lot of nothing 2026-07-30 17:38:34 -04:00
40978a0bea test commit from linux 2026-07-30 14:15:31 -04:00
6743868cba tranfer to laptop 2026-07-21 22:47:44 -04:00
e2f22ca293 updated for new android studio 2026-07-21 12:17:02 -04:00
3c99bd3c63 coommiting since I have to leave for a few days 2026-07-05 10:09:56 -04:00
6b1a2588eb added color change and a new empety screen 2026-07-04 22:31:52 -04:00
wildercayden
873227600f Added stuff 2026-07-04 00:32:44 -04:00
wildercayden
0b4045f6c1 added layout preview for startingactivity 2026-07-03 23:44:25 -04:00
1bb3ef86b5 added a few things 2026-07-03 21:56:12 -04:00
a5768ce50c first generator files 2026-07-03 16:14:42 -04:00
c2321c1f74 old commit stuff 2026-07-03 16:12:13 -04:00
c98683446d merge 2026-05-07 17:50:52 -04:00
wildercayden
329f0a69ff updated for DCMP 2026-04-16 10:13:14 -04:00
wildercayden
8a0be680b5 updated UI and stuff 2026-04-09 16:15:04 -04:00
wildercayden
edef1e593e updated UI and stuff 2026-03-17 17:36:44 -04:00
wildercayden
0f9078ab50 first commit for branch 2026-03-05 09:33:24 -05:00
decc3f207a Remove ignored files from tracking 2026-03-03 12:27:06 -05:00
wildercayden
1cadc55713 Remove ignored files from tracking 2026-03-03 12:21:55 -05:00
wildercayden
a7a46a3669 fixed git ignore 2026-03-03 12:19:21 -05:00
wildercayden
6b42cf1072 removed get match button - done key on soft keyboard replace it 2026-03-03 12:15:52 -05:00
wildercayden
54aa8ab2fa added older android support, made main activity work better on smaller screens 2026-03-02 20:26:48 -05:00
wildercayden
f106897a09 added offline mode, changed layout in main activity 2026-03-01 12:45:33 -05:00
wildercayden
1c193d6d4a fixed the l1-l3 2026-01-17 17:02:24 -05:00
wildercayden
c34ae11b0e changed layout, fixed numbers when going back a page, removed L2 and L3 from auto, and fixed some bugs 2026-01-17 15:29:32 -05:00
19060d7c7c added pratice button 2026-01-12 13:22:51 -05:00
449a9c4fbb updated for the 2026 season 2026-01-11 20:34:15 -05:00
8235b5f239 Fixed event and made a new .json file 2025-12-27 14:44:12 -05:00
24e29027b8 fix again 2025-12-13 21:06:13 -05:00
67ae0f3a63 Merge branch 'main' of https://github.com/missluce54/Reefscape-Scouting-App 2025-12-13 21:03:38 -05:00
6ee907fcfc test 2025-12-13 21:02:54 -05:00
091e1a785c Update team number in README.md 2025-12-13 21:01:31 -05:00
d14b8705ac fix 2025-12-13 20:59:43 -05:00
1a0cfa27f0 test 2025-12-13 20:45:59 -05:00
76b3b5d652 first release for 4564 2025-12-13 20:27:33 -05:00
1a04b239dc made changes for team 4564 2025-12-13 17:54:52 -05:00
1a27e689fb made changes for team 4564 2025-12-13 17:54:45 -05:00
9eb2aa505d undo 2025-12-13 17:19:05 -05:00
7e415b037a first commit for 4564 2025-12-13 17:09:51 -05:00
55601122d2 Update .gitignore to include Gradle and Android files
Added additional ignored files and directories for Gradle, Android Studio, and IntelliJ.
2025-12-13 17:04:25 -05:00
889 changed files with 7839 additions and 78955 deletions

52
.gitignore vendored Normal file
View File

@@ -0,0 +1,52 @@
# =========================================================================
# Android Studio / IntelliJ / Java / Gradle Gitignore Template
# =========================================================================
# Built application files & bundle outputs
*.apk
*.aar
*.ap_
*.aab
output-metadata.json
# Files for the ART/Dalvik VM & compiled Java bytecode
*.dex
*.class
# Generated build artifacts and caches
bin/
gen/
out/
.gradle/
build/
app/build/
captures/
.externalNativeBuild/
.cxx/
# Local configuration files (contains your local SDK path, etc.)
local.properties
# Log files
*.log
# Android Studio / IntelliJ IDE files
*.iml
.idea/
*.iws
*.ipr
# Keystore files (Uncomment to prevent uploading your production signing keys)
# *.jks
# *.keystore
# Google Services configuration file
# (Uncomment if your repository is public and you want to hide your Firebase keys)
# google-services.json
# OS generated files
.DS_Store
.DS_Store?
._*
Thumbs.db
ehthumbs.db

25
.idea/.gitignore generated vendored
View File

@@ -1,3 +1,22 @@
# Default ignored files # Gradle & Build
/shelf/ .gradle/
/workspace.xml build/
*.apk
*.aab
# Local configuration
local.properties
# Android Studio/IntelliJ
.idea/workspace.xml
.idea/libraries/
*.iml
captures/
# Keystore & Sensitive Data
*.jks
*.keystore
# google-services.json
# OS specific
.DS_Store

File diff suppressed because it is too large Load Diff

66
.idea/workspace.xml generated Normal file
View File

@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="NONE" />
</component>
<component name="ChangeListManager">
<list default="true" id="e6962293-3789-4c0b-8e8d-572b4ba78f5f" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/ScoutingApp/local.properties" beforeDir="false" afterPath="$PROJECT_DIR$/ScoutingApp/local.properties" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ClangdSettings">
<option name="formatViaClangd" value="false" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="GitHubPullRequestSearchHistory"><![CDATA[{
"lastFilter": {
"state": "OPEN",
"assignee": "wildercayden"
}
}]]></component>
<component name="GithubPullRequestsUISettings"><![CDATA[{
"selectedUrlAndAccountId": {
"url": "https://github.com/missluce54/Reefscape-Scouting-App.git",
"accountId": "4df7fa0d-c486-4a64-b4eb-b84d7595dcb0"
}
}]]></component>
<component name="ProjectColorInfo">{
&quot;customColor&quot;: &quot;&quot;,
&quot;associatedIndex&quot;: 2
}</component>
<component name="ProjectId" id="387Rmj8pJKvpeq6R77CTwmrxc0N" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RunOnceActivity.ShowReadmeOnStart": "true",
"RunOnceActivity.cidr.known.project.marker": "true",
"RunOnceActivity.git.unshallow": "true",
"RunOnceActivity.readMode.enableVisualFormatting": "true",
"android.gradle.sync.needed": "true",
"cf.first.check.clang-format": "false",
"cidr.known.project.marker": "true",
"git-widget-placeholder": "main",
"kotlin-language-version-configured": "true",
"last_opened_file_path": "C:/Users/cayde/Desktop/ScoutingApp"
}
}]]></component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="e6962293-3789-4c0b-8e8d-572b4ba78f5f" name="Changes" comment="" />
<created>1768148783945</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1768148783945</updated>
</task>
<servers />
</component>
</project>

15
Generator/.gitignore vendored Normal file
View File

@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties

1
Generator/app/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/build

View File

@@ -0,0 +1,91 @@
plugins {
alias(libs.plugins.android.application)
}
android {
namespace = "com.example.generator"
compileSdk = 36
defaultConfig {
applicationId = "com.example.generator"
minSdk = 23
targetSdk = 34
versionCode = 5
versionName = "2.3"
multiDexEnabled = true // Required since you added the multidex dependency
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
packaging {
resources {
excludes += "META-INF/DEPENDENCIES"
excludes += "META-INF/INDEX.LIST"
// CRITICAL: WPILib libraries include desktop JNI files.
// This prevents duplicate file and incompatible native architecture errors.
excludes += "**/libntcore.dylib"
excludes += "**/ntcore.dll"
excludes += "**/libntcore.so"
excludes += "**/libwpiutil.dylib"
excludes += "**/wpiutil.dll"
excludes += "**/libwpiutil.so"
}
}
buildFeatures {
viewBinding = true
}
}
dependencies {
implementation(libs.annotation)
implementation(libs.fragment)
implementation(libs.lifecycle.livedata.ktx)
implementation(libs.lifecycle.viewmodel.ktx)
implementation(libs.viewpager2)
// Desugaring & MultiDex
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
implementation("androidx.multidex:multidex:2.0.1")
// Core Android UI
implementation(libs.activity.ktx)
implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.activity)
implementation(libs.constraintlayout)
// Google Sheets & Core API
implementation("com.google.apis:google-api-services-sheets:v4-rev581-1.25.0") {
exclude(group = "com.google.guava", module = "listenablefuture")
}
implementation("com.google.api-client:google-api-client:1.32.1")
implementation("com.google.oauth-client:google-oauth-client:1.32.1")
implementation("com.google.http-client:google-http-client-gson:1.42.3")
implementation("com.google.auth:google-auth-library-oauth2-http:1.15.0")
// JSON & Networking
implementation("com.google.code.gson:gson:2.10.1")
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.2")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
// Testing
testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
}

21
Generator/app/proguard-rules.pro vendored Normal file
View File

@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

View File

@@ -0,0 +1,26 @@
package com.example.generator;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.generator", appContext.getPackageName());
}
}

View File

@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@drawable/ic_launcher_background"
android:supportsRtl="true"
android:theme="@style/Theme.Generator">
<activity
android:name=".ColorActivity"
android:exported="false" />
<activity
android:name=".MakeAutoActivity"
android:exported="false" />
<activity
android:name=".StartingPreview"
android:exported="false" />
<activity
android:name=".MakeStartingActivity"
android:exported="false" />
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".EventsActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".DebugActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".MakeAutoActivity2"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".PreviewAutoActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".MakeAutoActivity3"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
</application>
</manifest>

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

View File

@@ -0,0 +1,208 @@
package com.example.generator;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.os.Bundle;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.RadioButton;
import android.widget.Spinner;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import com.google.android.material.button.MaterialButton;
public class ColorActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_color);
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;
});
Spinner spinnerP = (Spinner) findViewById(R.id.ColorSelector);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.colorOptions, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinnerP.setAdapter(adapter);
Spinner spinnerS = (Spinner) findViewById(R.id.ColorSelector2nd);
ArrayAdapter<CharSequence> adapter2 = ArrayAdapter.createFromResource(this, R.array.colorOptions2nd, android.R.layout.simple_spinner_item);
adapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinnerS.setAdapter(adapter2);
Button backButton = (Button) findViewById(R.id.backButton);
Button nextButton = (Button) findViewById(R.id.nextButton);
backButton.setOnClickListener((v) -> {
Intent intent = new Intent(this, EventsActivity.class);
startActivity(intent);
});
nextButton.setOnClickListener((v) -> {
Intent intent = new Intent(this, MakeStartingActivity.class);
startActivity(intent);
});
MaterialButton TeleExample1 = (MaterialButton) findViewById(R.id.button_tele_example);
MaterialButton TeleExample2 = (MaterialButton) findViewById(R.id.button_tele_example2);
MaterialButton AutoExample1 = (MaterialButton) findViewById(R.id.button_auto_example);
MaterialButton AutoExample2 = (MaterialButton) findViewById(R.id.button_auto_example2);
MaterialButton NavExample1 = (MaterialButton) findViewById(R.id.button_nav_example);
MaterialButton NavExample2 = (MaterialButton) findViewById(R.id.button_nav_example2);
RadioButton radioButton = (RadioButton) findViewById(R.id.radioButton);
CheckBox checkBox = (CheckBox) findViewById(R.id.checkBox);
spinnerP.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parentView, android.view.View selectedItemView, int position, long id) {
String selectedItem = parentView.getItemAtPosition(position).toString();
int mainColorRes = 0;
int bgTintRes = 0;
String Color = "";
switch (selectedItem) {
case "Primary Orange":
Color = "Orange";
mainColorRes = R.color.orangeMain;
bgTintRes = R.color.orangeMain_bg;
break;
case "Primary Green":
Color = "Green";
mainColorRes = R.color.greenMain;
bgTintRes = R.color.greenMain_bg;
break;
case "Primary Blue":
Color = "Blue";
mainColorRes = R.color.blueMain;
bgTintRes = R.color.blueMain_bg;
break;
case "Primary Pink":
Color = "Pink";
mainColorRes = R.color.pinkMain;
bgTintRes = R.color.pinkMain_bg;
break;
case "Primary Purple":
Color = "Purple";
mainColorRes = R.color.purpleMain;
bgTintRes = R.color.purpleMain_bg;
break;
case "Primary Red":
Color = "Red";
mainColorRes = R.color.redMain;
bgTintRes = R.color.redMain_bg;
break;
case "Primary Yellow":
Color = "Yellow";
mainColorRes = R.color.yellowMain;
bgTintRes = R.color.yellowMain_bg;
break;
}
if (mainColorRes != 0) {
ColorStateList mainColorStateList = ContextCompat.getColorStateList(ColorActivity.this, mainColorRes);
ColorStateList bgTintStateList = ContextCompat.getColorStateList(ColorActivity.this, bgTintRes);
int mainColorInt = ContextCompat.getColor(ColorActivity.this, mainColorRes);
EventsActivity.Data.setColorP(Color);
spinnerP.setBackgroundColor(mainColorInt);
radioButton.setButtonTintList(mainColorStateList);
checkBox.setButtonTintList(mainColorStateList);
TeleExample1.setStrokeColor(mainColorStateList);
TeleExample1.setBackgroundTintList(bgTintStateList);
AutoExample2.setStrokeColor(mainColorStateList);
AutoExample2.setBackgroundTintList(bgTintStateList);
NavExample2.setBackgroundColor(mainColorInt);
NavExample1.setBackgroundColor(mainColorInt);
backButton.setBackgroundColor(mainColorInt);
nextButton.setBackgroundColor(mainColorInt);
}
}
@Override
public void onNothingSelected(AdapterView<?> parentView) {}
});
spinnerS.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parentView, android.view.View selectedItemView, int position, long id) {
String selectedItem = parentView.getItemAtPosition(position).toString();
int mainColorRes = 0;
int bgTintRes = 0;
String Color = "";
switch (selectedItem) {
case "Secondary Orange":
Color = "Orange";
mainColorRes = R.color.orangeMain;
bgTintRes = R.color.orangeMain_bg;
break;
case "Secondary Green":
Color = "Green";
mainColorRes = R.color.greenMain;
bgTintRes = R.color.greenMain_bg;
break;
case "Secondary Blue":
Color = "Blue";
mainColorRes = R.color.blueMain;
bgTintRes = R.color.blueMain_bg;
break;
case "Secondary Pink":
Color = "Pink";
mainColorRes = R.color.pinkMain;
bgTintRes = R.color.pinkMain_bg;
break;
case "Secondary Purple":
Color = "Purple";
mainColorRes = R.color.purpleMain;
bgTintRes = R.color.purpleMain_bg;
break;
case "Secondary Red":
Color = "Red";
mainColorRes = R.color.redMain;
bgTintRes = R.color.redMain_bg;
break;
case "Secondary Yellow":
Color = "Yellow";
mainColorRes = R.color.yellowMain;
bgTintRes = R.color.yellowMain_bg;
break;
}
if (mainColorRes != 0) {
ColorStateList mainColorStateList = ContextCompat.getColorStateList(ColorActivity.this, mainColorRes);
ColorStateList bgTintStateList = ContextCompat.getColorStateList(ColorActivity.this, bgTintRes);
int mainColorInt = ContextCompat.getColor(ColorActivity.this, mainColorRes);
EventsActivity.Data.setColorS(Color);
spinnerS.setBackgroundColor(mainColorInt);
TeleExample2.setStrokeColor(mainColorStateList);
TeleExample2.setBackgroundTintList(bgTintStateList);
AutoExample1.setStrokeColor(mainColorStateList);
AutoExample1.setBackgroundTintList(bgTintStateList);
}
}
@Override
public void onNothingSelected(AdapterView<?> parentView) {}
});
}
}

View File

@@ -0,0 +1,218 @@
package com.example.generator;
public class Data {
private String base64;
private int numPos;
private String colorP= "Orange";
private String colorS = "Green";
private String eventn1;
private String eventn2;
private String eventn3;
private String eventn4;
private String eventa1;
private String eventa2;
private String eventa3;
private String eventa4;
private String ScoreOb1;
private String ScoreOb2;
private String ScoreOb3;
private String ScoreOb4;
private String ScoreOb5;
private String ScoreOb6;
private String ScoreOb7;
private String ScoreOb8;
private String ScoreOb9;
private String NumScoreOb = "0";
private int[] NumButtonOb = new int[9];
private int[] valueButtonsAuto = new int[81];
public String getBase64() {
return base64;
}
public void setBase64(String base64) {
this.base64 = base64;
}
public void setNumPos(int numPos) {
this.numPos = Math.max(0, numPos);
}
public int getNumPos() {
return Math.max(0, numPos);
}
public String getColorP() {
return colorP;
}
public void setColorP(String colorP) {
this.colorP = colorP;
}
public String getColorS() {
return colorS;
}
public void setColorS(String colorS) {
this.colorS = colorS;
}
public String getEventn1() {
return eventn1;
}
public void setEventn1(String eventn1) {
this.eventn1 = eventn1;
}
public String getEventa1() {
return eventa1;
}
public void setEventa1(String eventa1) {
this.eventa1 = eventa1;
}
public String getEventn2() {
return eventn2;
}
public void setEventn2(String eventn2) {
this.eventn2 = eventn2;
}
public String getEventa2() {
return eventa2;
}
public void setEventa2(String eventa2) {
this.eventa2 = eventa2;
}
public String getEventn3() {
return eventn3;
}
public void setEventn3(String eventn3) {
this.eventn3 = eventn3;
}
public String getEventa3() {
return eventa3;
}
public void setEventa3(String eventa3) {
this.eventa3 = eventa3;
}
public String getEventn4() {
return eventn4;
}
public void setEventn4(String eventn4) {
this.eventn4 = eventn4;
}
public String getEventa4() {
return eventa4;
}
public void setEventa4(String eventa4) {
this.eventa4 = eventa4;
}
public void setNumScoreOb(String NumScoreOb) {
this.NumScoreOb = NumScoreOb;
}
public String getNumScoreOb() {
return NumScoreOb;
}
public void setScoreOb1(String ScoreOb1) {
this.ScoreOb1 = ScoreOb1;
}
public String getScoreOb1() {
return ScoreOb1;
}
public void setScoreOb2(String ScoreOb2) {
this.ScoreOb2 = ScoreOb2;
}
public String getScoreOb2() {
return ScoreOb2;
}
public void setScoreOb3(String ScoreOb3) {
this.ScoreOb3 = ScoreOb3;
}
public String getScoreOb3() {
return ScoreOb3;
}
public void setScoreOb4(String ScoreOb4) {
this.ScoreOb4 = ScoreOb4;
}
public String getScoreOb4() {
return ScoreOb4;
}
public void setScoreOb5(String ScoreOb5) {this.ScoreOb5 = ScoreOb5;
}
public String getScoreOb5() {
return ScoreOb5;
}
public void setScoreOb6(String ScoreOb6) {
this.ScoreOb6 = ScoreOb6;
}
public String getScoreOb6() {
return ScoreOb6;
}
public void setScoreOb7(String ScoreOb7) {this.ScoreOb7 = ScoreOb7;
}
public String getScoreOb7() {
return ScoreOb7;
}
public void setScoreOb8(String ScoreOb8) {this.ScoreOb8 = ScoreOb8;
}
public String getScoreOb8() {
return ScoreOb8;
}
public void setScoreOb9(String ScoreOb9) {this.ScoreOb9 = ScoreOb9;
}
public String getScoreOb9() {
return ScoreOb9;
}
public void setNumButtonOb(int[] NumButtonOb) {this.NumButtonOb = NumButtonOb;}
public int[] getNumButtonOb() {
return NumButtonOb;
}
public void setValueButtonsAuto(int[] valueButtonsAuto) {this.valueButtonsAuto = valueButtonsAuto;}
public int[] getvalueButtonsAuto() {
return valueButtonsAuto;
}
}

View File

@@ -0,0 +1,69 @@
package com.example.generator;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
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 DebugActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_debug);
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;
});
Button Main = (Button) findViewById(R.id.mainM);
Button Event = (Button) findViewById(R.id.Events);
Button Color = (Button) findViewById(R.id.Color);
Button MakeStart = (Button) findViewById(R.id.MakeStarting);
Button StartPreview = (Button) findViewById(R.id.MakeAuto);
Button MakeAuto = (Button) findViewById(R.id.MakeAuto);
Button MakeAuto2 = (Button) findViewById(R.id.MakeAuto2);
Main.setOnClickListener((v) -> {
Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);
});
Event.setOnClickListener((v) -> {
Intent intent = new Intent(this, EventsActivity.class);
startActivity(intent);
});
Color.setOnClickListener((v) -> {
Intent intent = new Intent(this, ColorActivity.class);
startActivity(intent);
});
MakeStart.setOnClickListener((v) -> {
Intent intent = new Intent(this, MakeStartingActivity.class);
startActivity(intent);
});
StartPreview.setOnClickListener((v) -> {
Intent intent = new Intent(this, MakeAutoActivity.class);
startActivity(intent);
});
MakeAuto.setOnClickListener((v) -> {
Intent intent = new Intent(this, MakeAutoActivity.class);
startActivity(intent);
});
MakeAuto2.setOnClickListener((v) -> {
Intent intent = new Intent(this, MakeAutoActivity2.class);
startActivity(intent);
});
}
}

View File

@@ -0,0 +1,86 @@
package com.example.generator;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
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 EventsActivity extends AppCompatActivity {
public static Data Data = new Data();
private EditText eventn1;
private EditText eventn2;
private EditText eventn3;
private EditText eventn4;
private EditText eventa1;
private EditText eventa2;
private EditText eventa3;
private EditText eventa4;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_events);
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;
});
EditText eventn1 = (EditText) findViewById(R.id.event1name);
EditText eventn2 = (EditText) findViewById(R.id.event2name);
EditText eventn3 = (EditText) findViewById(R.id.event3name);
EditText eventn4 = (EditText) findViewById(R.id.event4name);
EditText eventa1 = (EditText) findViewById(R.id.event1API);
EditText eventa2 = (EditText) findViewById(R.id.event2API);
EditText eventa3 = (EditText) findViewById(R.id.event3API);
EditText eventa4 = (EditText) findViewById(R.id.event4API);
Button backButton = (Button) findViewById(R.id.backButton);
Button nextButton = (Button) findViewById(R.id.nextButton);
backButton.setOnClickListener((v) -> {
Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);
});
nextButton.setOnClickListener((v) -> {
String Eventn1 = eventn1.getText().toString();
String Eventn2 = eventn2.getText().toString();
String Eventn3 = eventn3.getText().toString();
String Eventn4 = eventn4.getText().toString();
String Eventa1 = eventa1.getText().toString();
String Eventa2 = eventa2.getText().toString();
String Eventa3 = eventa3.getText().toString();
String Eventa4 = eventa4.getText().toString();
if (Eventn1.matches("") ||
Eventn2.matches("") ||
Eventa1.matches("") ||
Eventa2.matches("")) {
Toast.makeText(this, "fill at least events 1 and 2", Toast.LENGTH_LONG).show();
} else {
Data.setEventn1(Eventn1);
Data.setEventn2(Eventn2);
Data.setEventn3(Eventn3);
Data.setEventn4(Eventn4);
Data.setEventa1(Eventa1);
Data.setEventa2(Eventa2);
Data.setEventa3(Eventa3);
Data.setEventa4(Eventa4);
Intent intent = new Intent(this, ColorActivity.class);
startActivity(intent); }
});
}
}

View File

@@ -0,0 +1,52 @@
package com.example.generator;
import static android.view.View.INVISIBLE;
import static android.view.View.VISIBLE;
import static java.security.AccessController.getContext;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.os.Bundle;
import android.os.Debug;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import androidx.multidex.BuildConfig;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_main);
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;
});
Button makeButton = (Button) findViewById(R.id.nextButton);
makeButton.setOnClickListener((v) -> {
Intent intent = new Intent(this, EventsActivity.class);
startActivity(intent);
});
Button DebugButton = (Button) findViewById(R.id.Debug);
//DebugButton.setVisibility(View.GONE);
DebugButton.setOnClickListener((v) -> {
Intent intent = new Intent(this, DebugActivity.class);
startActivity(intent);
});
}
}

View File

@@ -0,0 +1,148 @@
package com.example.generator;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;
import android.widget.TextView;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import com.google.android.material.button.MaterialButton;
public class MakeAutoActivity extends AppCompatActivity {
private EditText ScoreObjects;
private EditText Ob1;
private EditText Ob2;
private EditText Ob3;
private EditText Ob4;
private EditText Ob5;
private EditText Ob6;
private EditText Ob7;
private EditText Ob8;
private EditText Ob9;
private String ColorP = "";
private String ColorS = "";
private int mainColorResP = 0;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_make_auto);
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;
});
EditText ScoreObjects = (EditText) findViewById(R.id.NumScorObject);
EditText Ob1 = (EditText) findViewById(R.id.NumOfButton1);
EditText Ob2 = (EditText) findViewById(R.id.scoreOb2);
EditText Ob3 = (EditText) findViewById(R.id.scoreOb3);
EditText Ob4 = (EditText) findViewById(R.id.scoreOb4);
EditText Ob5 = (EditText) findViewById(R.id.scoreOb5);
EditText Ob6 = (EditText) findViewById(R.id.scoreOb6);
EditText Ob7 = (EditText) findViewById(R.id.scoreOb7);
EditText Ob8 = (EditText) findViewById(R.id.scoreOb8);
EditText Ob9 = (EditText) findViewById(R.id.scoreOb9);
Ob1.setVisibility(View.GONE);
Ob2.setVisibility(View.GONE);
Ob3.setVisibility(View.GONE);
Ob4.setVisibility(View.GONE);
Ob5.setVisibility(View.GONE);
Ob6.setVisibility(View.GONE);
Ob7.setVisibility(View.GONE);
Ob8.setVisibility(View.GONE);
Ob9.setVisibility(View.GONE);
MaterialButton backButton = findViewById(R.id.backButton);
MaterialButton nextButton = findViewById(R.id.nextButton);
backButton.setOnClickListener((v) -> {
Intent intent = new Intent(this, MakeAutoActivity.class);
startActivity(intent);
});
if (EventsActivity.Data.getColorS() != null) {
ColorS = EventsActivity.Data.getColorS();
}
if (EventsActivity.Data.getColorP() != null) {
ColorP = EventsActivity.Data.getColorP();
}
switch (ColorP) {
case "Green": mainColorResP = R.color.greenMain; break;
case "Blue": mainColorResP = R.color.blueMain; break;
case "Pink": mainColorResP = R.color.pinkMain; break;
case "Purple": mainColorResP = R.color.purpleMain; break;
case "Red": mainColorResP = R.color.redMain; break;
case "Yellow": mainColorResP = R.color.yellowMain; break;
default: mainColorResP = R.color.orangeMain; break;
}
if (mainColorResP != 0) {
int actualColor = ContextCompat.getColor(this, mainColorResP);
ColorStateList tintList = ColorStateList.valueOf(actualColor);
ViewCompat.setBackgroundTintList(nextButton, tintList);
ViewCompat.setBackgroundTintList(backButton, tintList);
nextButton.setStrokeWidth(0);
backButton.setStrokeWidth(0);
}
backButton.setOnClickListener((v) -> {
Intent intent = new Intent(this, MakeStartingActivity.class);
startActivity(intent);
});
nextButton.setOnClickListener((v) -> {
EventsActivity.Data.setScoreOb1(Ob1.getText().toString());
EventsActivity.Data.setScoreOb2(Ob2.getText().toString());
EventsActivity.Data.setScoreOb3(Ob3.getText().toString());
EventsActivity.Data.setScoreOb4(Ob4.getText().toString());
EventsActivity.Data.setScoreOb5(Ob5.getText().toString());
EventsActivity.Data.setScoreOb6(Ob6.getText().toString());
EventsActivity.Data.setScoreOb7(Ob7.getText().toString());
EventsActivity.Data.setScoreOb8(Ob8.getText().toString());
EventsActivity.Data.setScoreOb9(Ob9.getText().toString());
EventsActivity.Data.setNumScoreOb(ScoreObjects.getText().toString());
Intent intent = new Intent(this, MakeAutoActivity2.class);
startActivity(intent);
});
ScoreObjects.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
boolean handled = false;
if (actionId == EditorInfo.IME_ACTION_DONE) {
String ScoreNum = ScoreObjects.getText().toString();
View[] objectives = {
Ob1, Ob2, Ob3, Ob4, Ob5,
Ob6, Ob7, Ob8, Ob9
};
int score = ScoreNum.isEmpty() ? 0 : Integer.parseInt(ScoreNum);
for (int i = 0; i < objectives.length; i++) {
objectives[i].setVisibility(i < score ? View.VISIBLE : View.GONE);
}
handled = true;
}
return handled;
}
});
}
}

View File

@@ -0,0 +1,101 @@
package com.example.generator;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.os.Bundle;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import androidx.fragment.app.Fragment;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.tabs.TabLayout;
public class MakeAutoActivity2 extends AppCompatActivity {
private String ColorP = "";
private String ColorS = "";
private int mainColorResP = 0;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_make_auto2);
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;
});
if (savedInstanceState == null) {
getSupportFragmentManager().beginTransaction()
.replace(R.id.fragmentContainer, new Tab1())
.commit();
}
TabLayout tabLayout = findViewById(R.id.tabLayout);
tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
@Override
public void onTabSelected(TabLayout.Tab tab) {
// Pass tab position dynamically
Fragment targetFragment = Tab1.newInstance(tab.getPosition());
getSupportFragmentManager().beginTransaction()
.replace(R.id.fragmentContainer, targetFragment)
.commit();
}
@Override
public void onTabUnselected(TabLayout.Tab tab) {}
@Override
public void onTabReselected(TabLayout.Tab tab) {}
});
if (EventsActivity.Data.getColorS() != null) {
ColorS = EventsActivity.Data.getColorS();
}
if (EventsActivity.Data.getColorP() != null) {
ColorP = EventsActivity.Data.getColorP();
}
MaterialButton backButton = findViewById(R.id.backButton);
MaterialButton nextButton = findViewById(R.id.nextButton);
backButton.setOnClickListener((v) -> {
Intent intent = new Intent(this, MakeAutoActivity.class);
startActivity(intent);
});
nextButton.setOnClickListener((v) -> {
Intent intent = new Intent(this, MakeAutoActivity.class);
startActivity(intent);
});
switch (ColorP) {
case "Green": mainColorResP = R.color.greenMain; break;
case "Blue": mainColorResP = R.color.blueMain; break;
case "Pink": mainColorResP = R.color.pinkMain; break;
case "Purple": mainColorResP = R.color.purpleMain; break;
case "Red": mainColorResP = R.color.redMain; break;
case "Yellow": mainColorResP = R.color.yellowMain; break;
default: mainColorResP = R.color.orangeMain; break;
}
if (mainColorResP != 0) {
int actualColor = ContextCompat.getColor(this, mainColorResP);
ColorStateList tintList = ColorStateList.valueOf(actualColor);
ViewCompat.setBackgroundTintList(nextButton, tintList);
ViewCompat.setBackgroundTintList(backButton, tintList);
nextButton.setStrokeWidth(0);
backButton.setStrokeWidth(0);
}
}
}

View File

@@ -0,0 +1,217 @@
package com.example.generator;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.util.Base64;
import android.util.Log;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Toast;
import androidx.activity.EdgeToEdge;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.PickVisualMediaRequest;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.util.Objects;
public class MakeStartingActivity extends AppCompatActivity {
private ImageView imageView;
private int numPos = -1;
private int mainColorResP = 0;
private int bgTintResP = 0;
private String ColorP = "";
private int mainColorResS = 0;
private int bgTintResS = 0;
private String ColorS = "";
private EditText numPosEdit;
private String Base64img = "";
private final ActivityResultLauncher<PickVisualMediaRequest> pickMedia =
registerForActivityResult(new ActivityResultContracts.PickVisualMedia(), uri -> {
if (uri != null) {
imageView.setImageURI(uri);
Base64img = convertUriToBase64(uri);
if (!Base64img.isEmpty()) {
Log.d("Base64Result", Base64img);
}
}
});
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_make);
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;
});
switch (EventsActivity.Data.getColorS()) {
case "Orange":
ColorS = "Orange";
mainColorResS = R.color.orangeMain;
bgTintResS = R.color.orangeMain_bg;
break;
case "Green":
ColorS = "Green";
mainColorResS = R.color.greenMain;
bgTintResS = R.color.greenMain_bg;
break;
case "Blue":
ColorS = "Blue";
mainColorResS = R.color.blueMain;
bgTintResS = R.color.blueMain_bg;
break;
case "Pink":
ColorS = "Pink";
mainColorResS = R.color.pinkMain;
bgTintResS = R.color.pinkMain_bg;
break;
case "Purple":
ColorS = "Purple";
mainColorResS = R.color.purpleMain;
bgTintResS = R.color.purpleMain_bg;
break;
case "Red":
ColorS = "Red";
mainColorResS = R.color.redMain;
bgTintResS = R.color.redMain_bg;
break;
case "Yellow":
ColorS = "Yellow";
mainColorResS = R.color.yellowMain;
bgTintResS = R.color.yellowMain_bg;
break;
}
switch (EventsActivity.Data.getColorP()) {
case "Orange":
ColorP = "Orange";
mainColorResP = R.color.orangeMain;
bgTintResP = R.color.orangeMain_bg;
break;
case "Green":
ColorP = "Green";
mainColorResP = R.color.greenMain;
bgTintResP = R.color.greenMain_bg;
break;
case "Blue":
ColorP = "Blue";
mainColorResP = R.color.blueMain;
bgTintResP = R.color.blueMain_bg;
break;
case "Pink":
ColorP = "Pink";
mainColorResP = R.color.pinkMain;
bgTintResP = R.color.pinkMain_bg;
break;
case "Purple":
ColorP = "Purple";
mainColorResP = R.color.purpleMain;
bgTintResP = R.color.purpleMain_bg;
break;
case "Red":
ColorP = "Red";
mainColorResP = R.color.redMain;
bgTintResP = R.color.redMain_bg;
break;
case "Yellow":
ColorP = "Yellow";
mainColorResP = R.color.yellowMain;
bgTintResP = R.color.yellowMain_bg;
break;
}
imageView = findViewById(R.id.imageView);
Button nextButton = (Button) findViewById(R.id.nextButton);
Button backButton = (Button) findViewById(R.id.backButton);
Button chooseButton = (Button) findViewById(R.id.button_image);
numPosEdit = findViewById(R.id.numPos);
if (mainColorResP != 0) {
int actualColor = ContextCompat.getColor(this, mainColorResP);
// 2. Turn that color into a ColorStateList
ColorStateList tintList = ColorStateList.valueOf(actualColor);
ViewCompat.setBackgroundTintList(nextButton, tintList);
ViewCompat.setBackgroundTintList(backButton, tintList);
ViewCompat.setBackgroundTintList(chooseButton, tintList);
}
backButton.setOnClickListener((v) -> {
Intent intent = new Intent(this, ColorActivity.class);
startActivity(intent);
});
nextButton.setOnClickListener((v) -> {
if (numPosEdit.getText().toString().trim().isEmpty()) {
Toast.makeText(this, "choose a number", Toast.LENGTH_SHORT).show();
} else {
numPos = Integer.parseInt(numPosEdit.getText().toString().trim());
if (Objects.equals(Base64img, "")) {
Toast.makeText(this, "choose a image", Toast.LENGTH_SHORT).show();
Log.d("test", Base64img);
} else {
EventsActivity.Data.setNumPos(numPos);
EventsActivity.Data.setBase64(Base64img);
Intent intent = new Intent(this, MakeAutoActivity.class);
startActivity(intent);
}
}
});
chooseButton.setOnClickListener((v) -> {
pickMedia.launch(new PickVisualMediaRequest.Builder()
.setMediaType(ActivityResultContracts.PickVisualMedia.ImageOnly.INSTANCE)
.build());
});
}
private String convertUriToBase64(Uri uri) {
try {
InputStream inputStream = getContentResolver().openInputStream(uri);
Bitmap bitmap = BitmapFactory.decodeStream(inputStream);
if (inputStream != null) inputStream.close();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);
byte[] imageBytes = outputStream.toByteArray();
return Base64.encodeToString(imageBytes, Base64.DEFAULT);
} catch (Exception e) {
e.printStackTrace();
Toast.makeText(this, "Failed to convert image", Toast.LENGTH_SHORT).show();
return "";
}
}
}

View File

@@ -0,0 +1,79 @@
package com.example.generator;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
public class Tab1 extends Fragment {
private static final String ARG_POSITION = "tab_position";
public Tab1() {
// Required empty public constructor
}
public static Tab1 newInstance(int position) {
Tab1 fragment = new Tab1();
Bundle args = new Bundle();
args.putInt(ARG_POSITION, position);
fragment.setArguments(args);
return fragment;
}
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater,
@Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_tab1, container, false);
int tabPosition = getArguments() != null ? getArguments().getInt(ARG_POSITION, 0) : 0;
TextView elementTitle = view.findViewById(R.id.text1);
elementTitle.setText("Element " + (tabPosition + 1));
EditText numOfButton = view.findViewById(R.id.numOfButton);
View[] objectives = {
view.findViewById(R.id.toAdd),
view.findViewById(R.id.toAdd2),
view.findViewById(R.id.toAdd3),
view.findViewById(R.id.toAdd4),
view.findViewById(R.id.toAdd5),
view.findViewById(R.id.toAdd6),
view.findViewById(R.id.toAdd7),
view.findViewById(R.id.toAdd8),
view.findViewById(R.id.toAdd9)
};
numOfButton.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
String input = s.toString();
EventsActivity.Data.setNumScoreOb(input);
int score = input.isEmpty() ? 0 : Integer.parseInt(input);
for (int o = 0; o < objectives.length; o++) {
objectives[o].setVisibility(o < score ? View.VISIBLE : View.GONE);
}
}
@Override
public void afterTextChanged(Editable s) {}
});
return view;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,176 @@
<?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=".ColorActivity">
<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="Next"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/backButton" />
<Button
android:id="@+id/button_nav_example"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="16dp"
android:backgroundTint="@color/orangeMain"
android:text="Next Example"
app:cornerRadius="0dp"
app:layout_constraintBottom_toTopOf="@+id/nextButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/button_nav_example2" />
<Button
android:id="@+id/button_nav_example2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="4dp"
android:layout_marginBottom="16dp"
android:backgroundTint="@color/orangeMain"
android:text="Back Example"
app:cornerRadius="0dp"
app:layout_constraintBottom_toTopOf="@+id/nextButton"
app:layout_constraintEnd_toStartOf="@+id/button_nav_example"
app:layout_constraintStart_toStartOf="parent" />
<Button
android:id="@+id/button_tele_example"
android:layout_width="0dp"
android:layout_height="0dp"
android:text="Tele Main"
android:textColor="@color/white"
android:textSize="20sp"
app:cornerRadius="0dp"
app:layout_constraintBottom_toTopOf="@+id/button_auto_example2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/guideline2"
app:strokeWidth="5dp" />
<Button
android:id="@+id/button_auto_example2"
android:layout_width="0dp"
android:layout_height="0dp"
android:text="Auto Secondary"
android:textColor="@color/white"
android:textSize="20sp"
app:cornerRadius="0dp"
app:layout_constraintBottom_toTopOf="@+id/button_auto_example"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button_tele_example"
app:strokeWidth="5dp" />
<Button
android:id="@+id/button_auto_example"
android:layout_width="0dp"
android:layout_height="0dp"
android:text="Auto Main"
android:textColor="@color/white"
android:textSize="20sp"
app:cornerRadius="0dp"
app:layout_constraintBottom_toTopOf="@+id/button_tele_example2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.536"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button_auto_example2"
app:strokeWidth="5dp" />
<Button
android:id="@+id/button_tele_example2"
android:layout_width="0dp"
android:layout_height="0dp"
android:text="Tele Secondary"
android:textColor="@color/white"
android:textSize="20sp"
app:cornerRadius="0dp"
app:layout_constraintBottom_toTopOf="@+id/radioButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button_auto_example"
app:strokeWidth="5dp" />
<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.Guideline
android:id="@+id/guideline2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent=".15" />
<Spinner
android:id="@+id/ColorSelector"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:background="@color/orangeMain"
android:theme="@style/WhiteSpinnerTheme" />
<Spinner
android:id="@+id/ColorSelector2nd"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@color/greenMain"
android:theme="@style/WhiteSpinnerTheme"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/ColorSelector" />
<RadioButton
android:id="@+id/radioButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="RadioButton Example"
android:textColor="@color/white"
app:buttonTint="@color/orangeMain"
app:layout_constraintBottom_toTopOf="@+id/button_nav_example"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/checkBox" />
<CheckBox
android:id="@+id/checkBox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CheckBox Example"
android:textColor="@color/white"
app:buttonTint="@color/orangeMain"
app:layout_constraintBottom_toTopOf="@+id/button_nav_example2"
app:layout_constraintEnd_toStartOf="@+id/radioButton"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,69 @@
<?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"
tools:context=".DebugActivity">
<Button
android:id="@+id/mainM"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Main"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/Events" />
<Button
android:id="@+id/Events"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Events"
app:layout_constraintBottom_toTopOf="@+id/mainM"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/Color" />
<Button
android:id="@+id/Color"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Color"
app:layout_constraintBottom_toTopOf="@+id/Events"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/MakeStarting" />
<Button
android:id="@+id/MakeStarting"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="MakeStarting"
app:layout_constraintBottom_toTopOf="@+id/Color"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/MakeAuto" />
<Button
android:id="@+id/MakeAuto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="MakeAuto"
app:layout_constraintBottom_toTopOf="@+id/MakeStarting"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/MakeAuto2" />
<Button
android:id="@+id/MakeAuto2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="MakeAuto2"
app:layout_constraintBottom_toTopOf="@+id/MakeAuto"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,159 @@
<?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=".EventsActivity">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/event1name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:hint="Event 1 name"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintBottom_toTopOf="@+id/event2name"
app:layout_constraintEnd_toStartOf="@+id/event1API"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/event1API"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:hint="Event 1 API"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintBottom_toTopOf="@+id/event2API"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/event1name"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/event2name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:hint="Event 2 name"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintBottom_toTopOf="@+id/event3name"
app:layout_constraintEnd_toStartOf="@+id/event2API"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/event1name" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/event2API"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:hint="Event 2 API"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintBottom_toTopOf="@+id/event3API"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/event2name"
app:layout_constraintTop_toBottomOf="@+id/event1API" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/event3name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:hint="Event 3 name"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintBottom_toTopOf="@+id/event4name"
app:layout_constraintEnd_toStartOf="@+id/event3API"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/event2name" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/event3API"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:hint="Event 3 API"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintBottom_toTopOf="@+id/event4API"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/event3name"
app:layout_constraintTop_toBottomOf="@+id/event2API" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/event4name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:hint="Event 4 name"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintBottom_toTopOf="@+id/backButton"
app:layout_constraintEnd_toStartOf="@+id/event4API"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/event3name" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/event4API"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:hint="Event 4 API"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintBottom_toTopOf="@+id/nextButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/event4name"
app:layout_constraintTop_toBottomOf="@+id/event3API" />
<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" />
<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="Next"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/backButton" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,48 @@
<?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=".MainActivity">
<TextView
android:id="@+id/textPine"
android:layout_width="0dp"
android:layout_height="32dp"
android:ems="10"
android:text="2648 config generator"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="24sp"
app:layout_constraintBottom_toTopOf="@+id/nextButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.25" />
<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 New"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<Button
android:id="@+id/Debug"
android:layout_width="50dp"
android:layout_height="50dp"
app:icon="@android:drawable/ic_menu_preferences"
app:iconGravity="textTop"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,115 @@
<?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=".MakeStartingActivity">
<TextView
android:id="@+id/textPine2"
android:layout_width="0dp"
android:layout_height="32dp"
android:ems="10"
android:text="Starting postion image"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="24sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button_image" />
<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="Next"
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" />
<Button
android:id="@+id/button_image"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:backgroundTint="@color/orangeMain"
android:text="Choose image"
app:cornerRadius="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/guideline"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textPine2"
app:srcCompat="@drawable/_025_reefscape_transparent_background" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintGuide_percent="0.60"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="How many postions"
android:textColor="@color/white"
android:gravity="center"
android:textSize="24sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView" />
<EditText
android:id="@+id/numPos"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Number of postions 3-8"
android:inputType="number"
app:layout_constraintBottom_toTopOf="@+id/nextButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:digits="345678"
android:maxLength="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
android:imeOptions="actionDone"
app:layout_constraintTop_toBottomOf="@+id/textView" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,196 @@
<?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=".MakeAutoActivity">
<TextView
android:id="@+id/textPine4"
android:layout_width="0dp"
android:layout_height="32dp"
android:ems="10"
android:text="Number of buttons per object"
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" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/NumOfButton1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:hint="Scoring Object 1"
android:imeOptions="actionDone"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintEnd_toStartOf="@+id/scoreOb2"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/NumScorObject" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/scoreOb2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:hint="Scoring Object 2"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/NumOfButton1"
app:layout_constraintTop_toBottomOf="@+id/NumScorObject" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/scoreOb3"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:hint="Scoring Object 3"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintEnd_toStartOf="@+id/scoreOb4"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/NumOfButton1" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/scoreOb4"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:hint="Scoring Object 4"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/scoreOb3"
app:layout_constraintTop_toBottomOf="@+id/scoreOb2" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/scoreOb5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:hint="Scoring Object 5"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintEnd_toStartOf="@+id/scoreOb6"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/scoreOb3" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/scoreOb6"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:hint="Scoring Object 6"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/scoreOb5"
app:layout_constraintTop_toBottomOf="@+id/scoreOb4" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/scoreOb7"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="4dp"
android:hint="Scoring Object 7"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintEnd_toStartOf="@+id/scoreOb8"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/scoreOb5" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/scoreOb8"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:hint="Scoring Object 8"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/scoreOb7"
app:layout_constraintTop_toBottomOf="@+id/scoreOb6" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/scoreOb9"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="Scoring Object 9"
android:inputType="text|textCapSentences"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/scoreOb7" />
<EditText
android:id="@+id/NumScorObject"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Number of scoring objects"
android:imeOptions="actionDone"
android:inputType="number"
android:digits="1234567890"
android:maxLength="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textPine4" />
<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="Next"
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>

View File

@@ -0,0 +1,118 @@
<?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=".MakeAutoActivity2">
<TextView
android:id="@+id/textPine3"
android:layout_width="0dp"
android:layout_height="32dp"
android:ems="10"
android:text="Number of buttons per object"
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" />
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabLayout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@color/black"
app:tabIndicatorColor="@color/orangeMain"
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/orangeMain"
app:tabTextColor="@color/white"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textPine3">
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="3" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="4" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="5" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="6" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="7" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="8" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="9" />
</com.google.android.material.tabs.TabLayout>
<androidx.fragment.app.FragmentContainerView
android:id="@+id/fragmentContainer"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/nextButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tabLayout" />
<com.google.android.material.button.MaterialButton
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" />
<com.google.android.material.button.MaterialButton
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="Next"
app:cornerRadius="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/backButton" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,209 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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"
android:background="@color/black"
tools:context=".Tab1">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/text1"
android:layout_width="0dp"
android:layout_height="32dp"
android:ems="10"
android:text="Element 1"
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" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/numOfButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:digits="1234567890"
android:hint="Amount of buttons"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLength="1"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/text1" />
<TextView
android:id="@+id/text"
android:layout_width="0dp"
android:layout_height="32dp"
android:ems="10"
android:text="How much to add per button"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="24sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/numOfButton" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/toAdd"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:digits="1234567890"
android:hint="Button 1"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLength="1"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/text" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/toAdd2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:digits="1234567890"
android:hint="Button 2"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLength="1"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toAdd" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/toAdd3"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:digits="1234567890"
android:hint="Button 3"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLength="1"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toAdd2" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/toAdd4"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:digits="1234567890"
android:hint="Button 4"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLength="1"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toAdd3" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/toAdd5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:digits="1234567890"
android:hint="Button 5"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLength="1"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toAdd4" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/toAdd6"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:digits="1234567890"
android:hint="Button 6"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLength="1"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toAdd5" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/toAdd7"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:digits="1234567890"
android:hint="Button 7"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLength="1"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toAdd6" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/toAdd8"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:digits="1234567890"
android:hint="Button 8"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLength="1"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toAdd7" />
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/toAdd9"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:digits="1234567890"
android:hint="Button 9"
android:imeOptions="actionDone"
android:inputType="number"
android:maxLength="1"
android:maxLines="1"
android:textColor="@color/white"
android:textColorHint="@color/gray_hint"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toAdd8" />
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>

View File

@@ -2,4 +2,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/> <background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
</adaptive-icon> </adaptive-icon>

View File

@@ -2,4 +2,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/> <background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
</adaptive-icon> </adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,7 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.Generator" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your dark theme here. -->
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
</style>
</resources>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="colorOptions">
<item>Primary Orange</item>
<item>Primary Green</item>
<item>Primary Blue</item>
<item>Primary Pink</item>
<item>Primary Purple</item>
<item>Primary Red</item>
<item>Primary Yellow</item>
</string-array>
<string-array name="colorOptions2nd">
<item>Secondary Green</item>
<item>Secondary Orange</item>
<item>Secondary Blue</item>
<item>Secondary Pink</item>
<item>Secondary Purple</item>
<item>Secondary Red</item>
<item>Secondary Yellow</item>
</string-array>
</resources>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="gray_hint">#AAAAAA</color>
<color name="alliance_red">#F71000</color>
<color name="alliance_blue">#0084ff</color>
<color name="redMain">#DF2020</color>
<color name="redMain_bg">#40DF2020</color>
<color name="blueMain">#205CDF</color>
<color name="blueMain_bg">#40205CDF</color>
<color name="pinkMain">#F200DD</color>
<color name="pinkMain_bg">#40F200DD</color>
<color name="purpleMain">#A30096</color>
<color name="purpleMain_bg">#40A30096</color>
<color name="yellowMain">#F2EE00</color>
<color name="yellowMain_bg">#40F2EE00</color>
<color name="greenMain">#0EE906</color>
<color name="greenMain_bg">#400EE906</color>
<color name="orangeMain">#FF5722</color>
<color name="orangeMain_bg">#40FF5722</color>
</resources>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="default_stroke_width">3dp</dimen>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="fragment_horizontal_margin">16dp</dimen>
<dimen name="fragment_vertical_margin">16dp</dimen>
</resources>

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<dimen name="clock_face_margin_start">64dp</dimen> <color name="ic_launcher_background">#000000</color>
</resources> </resources>

View File

@@ -0,0 +1,79 @@
<resources>
<string name="app_name">ScoutConfig</string>
<string name="submit">Submit</string>
<string name="l0">No climb</string>
<string name="Preload">Only shoot Preload?</string>
<string name="l1">L1</string>
<string name="l2">L2</string>
<string name="l3">L3</string>
<string name="l4">L4</string>
<string name="net">Net</string>
<string name="next_hold">Next (Hold)</string>
<string name="processor">Processor</string>
<string name="can_leave">Go to center</string>
<string name="can_remove_algae">Can Remove Algae</string>
<string name="coral_pickup">Coral Pickup</string>
<string name="auto">Auto</string>
<string name="image_of_field">Image of field</string>
<string name="tele">Tele</string>
<string name="hold_button_to_ndecrement">Hold button to \ndecrement</string>
<string name="google_sheet">The Google Sheet</string>
<string name="offline_mode">Offline Mode/Manual</string>
<string name="practice">Practice</string>
<string name="match_number">Match Number</string>
<string name="app_description">Scouting App for FRC team 2648</string>
<string name="next">Next</string>
<string name="settings">Settings</string>
<string name="submit_old_data">Submit Old data</string>
<string name="team_2648">2648</string>
<string name="climb">Climb</string>
<string name="back_hold">Back (Hold)</string>
<string name="hub_reset">Hub back to 0</string>
<string name="hub_15">Hub +15: %1$d</string>
<string name="hub_25">Hub +25: %1$d</string>
<string name="hub_50">Hub +50: %1$d</string>
<string name="robot_died">Robot Died?</string>
<string name="submit_data">Submit Data</string>
<string name="notes">Notes</string>
<string name="starting_position_1">Starting Position 1</string>
<string name="starting_position_2">Starting Position 2</string>
<string name="starting_position_3">Starting Position 3</string>
<string name="starting_position_4">Starting Position 4</string>
<string name="starting_position_5">Starting Position 5</string>
<string name="back">Back</string>
<string name="team_number_hint">Team Number</string>
<string name="match">Match</string>
<string name="offline_mode_title">Offline mode</string>
<string name="red">Red</string>
<string name="blue">Blue</string>
<string name="event_2">NHDUR</string>
<string name="event_1">MEFAL</string>
<string name="event_necmp">NECMP</string>
<string name="event_cmptx">CMPTX</string>
<string name="name_hint">Name</string>
<string name="tba_api_hint">TBA_API</string>
<string name="sheets_api_hint">SheetsAPI</string>
<string name="online_mode_toast">Online mode</string>
<string name="fill_everything_error">Fill in Everything, check settings</string>
<string name="upload_failed_toast">Online failed to upload</string>
<string name="match_number_required_toast">Fill in MATCH NUMBER for teams</string>
<string name="invalid_match_error">Invalid Match Number, Check settings</string>
<string name="DN1">Defense -1, did\'t play defense</string>
<string name="D0">Defense 0, Played defense on wrong alliance</string>
<string name="D1">Defense 1, Did nothing of value</string>
<string name="D2">Defense 2, stopped a few shots</string>
<string name="D3">Defense 3, Got in the way nicely</string>
<string name="D4">Defense 4, Possibly changed outcome</string>
<string name="D5">Defense 5, Disabled a robot</string>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
<!-- Strings related to login -->
<string name="prompt_email">Email</string>
<string name="prompt_password">Password</string>
<string name="action_sign_in">Sign in or register</string>
<string name="action_sign_in_short">Sign in</string>
<string name="welcome">"Welcome!"</string>
<string name="invalid_username">Not a valid username</string>
<string name="invalid_password">Password must be >5 characters</string>
<string name="login_failed">"Login failed"</string>
</resources>

View File

@@ -0,0 +1,118 @@
<resources xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Base application theme. -->
<style name="Base.Theme.Generator" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your light theme here. -->
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
</style>
<style name="Theme.Generator" parent="Base.Theme.Generator" />
<style name="WhiteSpinnerTheme">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/black</item>
</style>
<style name="RedP">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/redMain_bg</item>
<item name="android:backgroundTint">@color/redMain_bg</item>
<item name="strokeColor">@color/redMain</item>
<item name="strokeWidth">5dp</item>
</style>
<style name="RedS">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/redMain_bg</item>
<item name="android:backgroundTint">@color/redMain_bg</item>
<item name="strokeColor">@color/redMain</item>
<item name="strokeWidth">5dp</item>
</style>
<style name="BlueP">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/blueMain_bg</item>
<item name="android:backgroundTint">@color/blueMain_bg</item>
<item name="strokeColor">@color/blueMain</item>
<item name="strokeWidth">5dp</item>
</style>
<style name="BlueS">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/blueMain_bg</item>
<item name="android:backgroundTint">@color/blueMain_bg</item>
<item name="strokeColor">@color/blueMain</item>
<item name="strokeWidth">5dp</item>
</style>
<style name="PinkP">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/pinkMain_bg</item>
<item name="android:backgroundTint">@color/pinkMain_bg</item>
<item name="strokeColor">@color/pinkMain</item>
<item name="strokeWidth">5dp</item>
</style>
<style name="PinkS">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/pinkMain_bg</item>
<item name="android:backgroundTint">@color/pinkMain_bg</item>
<item name="strokeColor">@color/pinkMain</item>
<item name="strokeWidth">5dp</item>
</style>
<style name="YellowP">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/yellowMain_bg</item>
<item name="android:backgroundTint">@color/yellowMain_bg</item>
<item name="strokeColor">@color/yellowMain</item>
<item name="strokeWidth">5dp</item>
</style>
<style name="YellowS">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/yellowMain_bg</item>
<item name="android:backgroundTint">@color/yellowMain_bg</item>
<item name="strokeColor">@color/yellowMain</item>
<item name="strokeWidth">5dp</item>
</style>
<style name="GreenP">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/greenMain_bg</item>
<item name="android:backgroundTint">@color/greenMain_bg</item>
<item name="strokeColor">@color/greenMain</item>
<item name="strokeWidth">5dp</item>
</style>
<style name="GreenS">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/black</item>
<item name="android:backgroundTint">@color/greenMain_bg</item>
<item name="strokeColor">@color/greenMain</item>
<item name="strokeWidth">5dp</item>
</style>
<style name="orangeP">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/orangeMain_bg</item>
<item name="android:backgroundTint">@color/orangeMain_bg</item>
<item name="strokeColor">@color/orangeMain</item>
<item name="strokeWidth">5dp</item>
</style>
<style name="orangeS">
<item name="android:textColor">@color/white</item>
<item name="android:background">@color/orangeMain_bg</item>
<item name="android:backgroundTint">@color/orangeMain_bg</item>
<item name="strokeColor">@color/orangeMain</item>
<item name="strokeWidth">5dp</item>
</style>
</resources>

View File

@@ -2,7 +2,7 @@
Sample backup rules file; uncomment and customize as necessary. Sample backup rules file; uncomment and customize as necessary.
See https://developer.android.com/guide/topics/data/autobackup See https://developer.android.com/guide/topics/data/autobackup
for details. for details.
Note: This file is ignored for devices older that API 31 Note: This file is ignored for devices older than API 31
See https://developer.android.com/about/versions/12/backup-restore See https://developer.android.com/about/versions/12/backup-restore
--> -->
<full-backup-content> <full-backup-content>

View File

@@ -0,0 +1,17 @@
package com.example.generator;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}

View File

@@ -0,0 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
}

View File

@@ -0,0 +1,21 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. For more details, visit
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true

View File

@@ -0,0 +1,13 @@
#This file is generated by updateDaemonJvm
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/491f83666ae7f4d6ebb28fee72ebb035/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/0d1a1acdc708062093673f65aa9aba4b/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/491f83666ae7f4d6ebb28fee72ebb035/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/0d1a1acdc708062093673f65aa9aba4b/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/7083b89563e7ce20943037b8cd2b8cc2/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/060bbb778a1f55ea705fdebd2ccfeab9/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/491f83666ae7f4d6ebb28fee72ebb035/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/0d1a1acdc708062093673f65aa9aba4b/redirect
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/d09679dc60fe5aa05ef7d03efdefac20/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/ed4e3bf2f5e7c5d9aabc4cbd8acd555e/redirect
toolchainVendor=JETBRAINS
toolchainVersion=21

View File

@@ -0,0 +1,37 @@
[versions]
agp = "8.13.2"
junit = "4.13.2"
junitVersion = "1.3.0"
espressoCore = "3.7.0"
appcompat = "1.7.1"
material = "1.13.0"
activity = "1.12.2"
constraintlayout = "2.2.1"
activityKtx = "1.8.0"
wpilib = "2026.2.2"
viewpager2 = "1.1.0"
annotation = "1.10.0"
lifecycleLivedataKtx = "2.11.0"
lifecycleViewmodelKtx = "2.11.0"
fragment = "1.8.9"
[libraries]
junit = { group = "junit", name = "junit", version.ref = "junit" }
ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
activity-ktx = { group = "androidx.activity", name = "activity-ktx", version.ref = "activityKtx" }
ntcore-java = { group = "edu.wpi.first.ntcore", name = "ntcore-java", version.ref = "wpilib" }
wpiutil-java = { group = "edu.wpi.first.wpiutil", name = "wpiutil-java", version.ref = "wpilib" }
viewpager2 = { group = "androidx.viewpager2", name = "viewpager2", version.ref = "viewpager2" }
annotation = { group = "androidx.annotation", name = "annotation", version.ref = "annotation" }
lifecycle-livedata-ktx = { group = "androidx.lifecycle", name = "lifecycle-livedata-ktx", version.ref = "lifecycleLivedataKtx" }
lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version.ref = "lifecycleViewmodelKtx" }
fragment = { group = "androidx.fragment", name = "fragment", version.ref = "fragment" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }

Binary file not shown.

View File

@@ -0,0 +1,6 @@
#Thu Aug 27 11:05:04 EDT 2026
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

185
Generator/gradlew vendored Normal file
View File

@@ -0,0 +1,185 @@
#!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=`expr $i + 1`
done
case $i in
0) set -- ;;
1) set -- "$args0" ;;
2) set -- "$args0" "$args1" ;;
3) set -- "$args0" "$args1" "$args2" ;;
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=`save "$@"`
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
exec "$JAVACMD" "$@"

89
Generator/gradlew.bat vendored Normal file
View File

@@ -0,0 +1,89 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

View File

@@ -0,0 +1,27 @@
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.10.0"
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "Generator"
include(":app")

Some files were not shown because too many files have changed in this diff Show More