Added a lot
This commit is contained in:
1
Generator/.idea/planningMode.xml
generated
1
Generator/.idea/planningMode.xml
generated
@@ -7,6 +7,7 @@
|
|||||||
<entry key="0220642f-001c-43ee-b5b0-6e6a0ca006b8" value="false" />
|
<entry key="0220642f-001c-43ee-b5b0-6e6a0ca006b8" value="false" />
|
||||||
<entry key="6620918d-77fb-4150-93dd-35d485d51d30" value="false" />
|
<entry key="6620918d-77fb-4150-93dd-35d485d51d30" value="false" />
|
||||||
<entry key="67c97c21-8e0e-44b1-b765-5cac5091c82d" value="false" />
|
<entry key="67c97c21-8e0e-44b1-b765-5cac5091c82d" value="false" />
|
||||||
|
<entry key="f5b780c2-36af-4133-9ab9-209496d7da42" value="false" />
|
||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
@@ -38,6 +39,18 @@
|
|||||||
android:name=".EventsActivity"
|
android:name=".EventsActivity"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:windowSoftInputMode="adjustResize" />
|
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" />
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
@@ -1,13 +1,11 @@
|
|||||||
package com.example.generator;
|
package com.example.generator;
|
||||||
|
|
||||||
import org.apache.commons.codec.binary.Hex;
|
|
||||||
|
|
||||||
public class Data {
|
public class Data {
|
||||||
private String base64;
|
private String base64;
|
||||||
private int numPos;
|
private int numPos;
|
||||||
|
|
||||||
private String colorP;
|
private String colorP= "Orange";
|
||||||
private String colorS;
|
private String colorS = "Green";
|
||||||
|
|
||||||
private String eventn1;
|
private String eventn1;
|
||||||
private String eventn2;
|
private String eventn2;
|
||||||
@@ -18,6 +16,18 @@ public class Data {
|
|||||||
private String eventa2;
|
private String eventa2;
|
||||||
private String eventa3;
|
private String eventa3;
|
||||||
private String eventa4;
|
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";
|
||||||
|
|
||||||
public String getBase64() {
|
public String getBase64() {
|
||||||
return base64;
|
return base64;
|
||||||
}
|
}
|
||||||
@@ -25,9 +35,11 @@ public class Data {
|
|||||||
public void setBase64(String base64) {
|
public void setBase64(String base64) {
|
||||||
this.base64 = base64;
|
this.base64 = base64;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNumPos(int numPos) {
|
public void setNumPos(int numPos) {
|
||||||
this.numPos = Math.max(0, numPos);
|
this.numPos = Math.max(0, numPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getNumPos() {
|
public int getNumPos() {
|
||||||
return Math.max(0, numPos);
|
return Math.max(0, numPos);
|
||||||
}
|
}
|
||||||
@@ -64,7 +76,6 @@ public class Data {
|
|||||||
this.eventa1 = eventa1;
|
this.eventa1 = eventa1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getEventn2() {
|
public String getEventn2() {
|
||||||
return eventn2;
|
return eventn2;
|
||||||
}
|
}
|
||||||
@@ -81,7 +92,6 @@ public class Data {
|
|||||||
this.eventa2 = eventa2;
|
this.eventa2 = eventa2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getEventn3() {
|
public String getEventn3() {
|
||||||
return eventn3;
|
return eventn3;
|
||||||
}
|
}
|
||||||
@@ -94,16 +104,17 @@ public class Data {
|
|||||||
return eventa3;
|
return eventa3;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEventa3(String eventa1) {
|
|
||||||
|
public void setEventa3(String eventa3) {
|
||||||
this.eventa3 = eventa3;
|
this.eventa3 = eventa3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getEventn4() {
|
public String getEventn4() {
|
||||||
return eventn4;
|
return eventn4;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEventn4(String eventn1) {
|
|
||||||
|
public void setEventn4(String eventn4) {
|
||||||
this.eventn4 = eventn4;
|
this.eventn4 = eventn4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,5 +125,79 @@ public class Data {
|
|||||||
public void setEventa4(String eventa4) {
|
public void setEventa4(String eventa4) {
|
||||||
this.eventa4 = 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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.StartingPreview);
|
||||||
|
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, StartingPreview.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);
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,7 +2,6 @@ package com.example.generator;
|
|||||||
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Log;
|
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
@@ -48,8 +47,8 @@ public class EventsActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Button backButton = (Button) findViewById(R.id.button_back);
|
Button backButton = (Button) findViewById(R.id.backButton);
|
||||||
Button nextButton = (Button) findViewById(R.id.button_next);
|
Button nextButton = (Button) findViewById(R.id.nextButton);
|
||||||
backButton.setOnClickListener((v) -> {
|
backButton.setOnClickListener((v) -> {
|
||||||
Intent intent = new Intent(this, MainActivity.class);
|
Intent intent = new Intent(this, MainActivity.class);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
|
|||||||
@@ -1,14 +1,24 @@
|
|||||||
package com.example.generator;
|
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.Intent;
|
||||||
|
import android.content.pm.ApplicationInfo;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.os.Debug;
|
||||||
|
import android.view.View;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
|
import android.widget.EditText;
|
||||||
|
|
||||||
import androidx.activity.EdgeToEdge;
|
import androidx.activity.EdgeToEdge;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.core.graphics.Insets;
|
import androidx.core.graphics.Insets;
|
||||||
import androidx.core.view.ViewCompat;
|
import androidx.core.view.ViewCompat;
|
||||||
import androidx.core.view.WindowInsetsCompat;
|
import androidx.core.view.WindowInsetsCompat;
|
||||||
|
import androidx.multidex.BuildConfig;
|
||||||
|
|
||||||
|
|
||||||
public class MainActivity extends AppCompatActivity {
|
public class MainActivity extends AppCompatActivity {
|
||||||
@@ -24,11 +34,19 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
|
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
|
||||||
return insets;
|
return insets;
|
||||||
});
|
});
|
||||||
Button makeButton = (Button) findViewById(R.id.button_next);
|
Button makeButton = (Button) findViewById(R.id.nextButton);
|
||||||
makeButton.setOnClickListener((v) -> {
|
makeButton.setOnClickListener((v) -> {
|
||||||
Intent intent = new Intent(this, EventsActivity.class);
|
Intent intent = new Intent(this, EventsActivity.class);
|
||||||
startActivity(intent);
|
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);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,18 +1,41 @@
|
|||||||
package com.example.generator;
|
package com.example.generator;
|
||||||
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.content.res.ColorStateList;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.widget.Button;
|
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.activity.EdgeToEdge;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
import androidx.core.content.ContextCompat;
|
||||||
import androidx.core.graphics.Insets;
|
import androidx.core.graphics.Insets;
|
||||||
import androidx.core.view.ViewCompat;
|
import androidx.core.view.ViewCompat;
|
||||||
import androidx.core.view.WindowInsetsCompat;
|
import androidx.core.view.WindowInsetsCompat;
|
||||||
|
|
||||||
|
import com.google.android.material.button.MaterialButton;
|
||||||
|
|
||||||
|
|
||||||
public class MakeAutoActivity extends AppCompatActivity {
|
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
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
@@ -24,16 +47,102 @@ public class MakeAutoActivity extends AppCompatActivity {
|
|||||||
return insets;
|
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);
|
||||||
|
|
||||||
Button backButton = (Button) findViewById(R.id.button_back);
|
|
||||||
Button nextButton = (Button) findViewById(R.id.button_next);
|
|
||||||
|
MaterialButton backButton = findViewById(R.id.backButton);
|
||||||
|
MaterialButton nextButton = findViewById(R.id.nextButton);
|
||||||
backButton.setOnClickListener((v) -> {
|
backButton.setOnClickListener((v) -> {
|
||||||
Intent intent = new Intent(this, StartingPreview.class);
|
Intent intent = new Intent(this, StartingPreview.class);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
});
|
});
|
||||||
nextButton.setOnClickListener((v) -> {
|
if (EventsActivity.Data.getColorS() != null) {
|
||||||
Intent intent = new Intent(this, MakeAutoActivity.class);
|
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, StartingPreview.class);
|
||||||
startActivity(intent);
|
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;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,112 @@
|
|||||||
|
package com.example.generator;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.content.res.ColorStateList;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.EditText;
|
||||||
|
|
||||||
|
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 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;
|
||||||
|
});
|
||||||
|
EditText Ob1 = (EditText) findViewById(R.id.NumOfButton1);
|
||||||
|
EditText Ob2 = (EditText) findViewById(R.id.NumOfButton2);
|
||||||
|
EditText Ob3 = (EditText) findViewById(R.id.NumOfButton3);
|
||||||
|
EditText Ob4 = (EditText) findViewById(R.id.NumOfButton4);
|
||||||
|
EditText Ob5 = (EditText) findViewById(R.id.NumOfButton5);
|
||||||
|
EditText Ob6 = (EditText) findViewById(R.id.NumOfButton6);
|
||||||
|
EditText Ob7 = (EditText) findViewById(R.id.NumOfButton7);
|
||||||
|
EditText Ob8 = (EditText) findViewById(R.id.NumOfButton8);
|
||||||
|
EditText Ob9 = (EditText) findViewById(R.id.NumOfButton9);
|
||||||
|
|
||||||
|
String ScoreNum = EventsActivity.Data.getNumScoreOb();
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
Ob1.setHint(EventsActivity.Data.getScoreOb1());
|
||||||
|
Ob2.setHint(EventsActivity.Data.getScoreOb2());
|
||||||
|
Ob3.setHint(EventsActivity.Data.getScoreOb3());
|
||||||
|
Ob4.setHint(EventsActivity.Data.getScoreOb4());
|
||||||
|
Ob5.setHint(EventsActivity.Data.getScoreOb5());
|
||||||
|
Ob6.setHint(EventsActivity.Data.getScoreOb6());
|
||||||
|
Ob7.setHint(EventsActivity.Data.getScoreOb7());
|
||||||
|
Ob8.setHint(EventsActivity.Data.getScoreOb8());
|
||||||
|
Ob9.setHint(EventsActivity.Data.getScoreOb9());
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
if (EventsActivity.Data.getColorS() != null) {
|
||||||
|
ColorS = EventsActivity.Data.getColorS();
|
||||||
|
}
|
||||||
|
if (EventsActivity.Data.getColorP() != null) {
|
||||||
|
ColorP = EventsActivity.Data.getColorP();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -143,19 +143,19 @@ public class MakeStartingActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
imageView = findViewById(R.id.imageView);
|
imageView = findViewById(R.id.imageView);
|
||||||
Button nextButton = (Button) findViewById(R.id.button_next);
|
Button nextButton = (Button) findViewById(R.id.nextButton);
|
||||||
Button backButton = (Button) findViewById(R.id.button_back);
|
Button backButton = (Button) findViewById(R.id.backButton);
|
||||||
Button chooseButton = (Button) findViewById(R.id.button_image);
|
Button chooseButton = (Button) findViewById(R.id.button_image);
|
||||||
numPosEdit = findViewById(R.id.numPos);
|
numPosEdit = findViewById(R.id.numPos);
|
||||||
|
|
||||||
if (mainColorResP != 0) {
|
if (mainColorResP != 0) {
|
||||||
// 1. Convert the Resource ID (R.color...) into the actual ARGB color integer
|
|
||||||
int actualColor = ContextCompat.getColor(this, mainColorResP);
|
int actualColor = ContextCompat.getColor(this, mainColorResP);
|
||||||
|
|
||||||
// 2. Turn that color into a ColorStateList
|
// 2. Turn that color into a ColorStateList
|
||||||
ColorStateList tintList = ColorStateList.valueOf(actualColor);
|
ColorStateList tintList = ColorStateList.valueOf(actualColor);
|
||||||
|
|
||||||
// 3. Apply ONLY the tint so you keep your rounded button styling
|
|
||||||
ViewCompat.setBackgroundTintList(nextButton, tintList);
|
ViewCompat.setBackgroundTintList(nextButton, tintList);
|
||||||
ViewCompat.setBackgroundTintList(backButton, tintList);
|
ViewCompat.setBackgroundTintList(backButton, tintList);
|
||||||
ViewCompat.setBackgroundTintList(chooseButton, tintList);
|
ViewCompat.setBackgroundTintList(chooseButton, tintList);
|
||||||
@@ -164,7 +164,7 @@ public class MakeStartingActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
|
|
||||||
backButton.setOnClickListener((v) -> {
|
backButton.setOnClickListener((v) -> {
|
||||||
Intent intent = new Intent(this, MainActivity.class);
|
Intent intent = new Intent(this, ColorActivity.class);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.example.generator;
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
|
||||||
|
import androidx.activity.EdgeToEdge;
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
import androidx.core.graphics.Insets;
|
||||||
|
import androidx.core.view.ViewCompat;
|
||||||
|
import androidx.core.view.WindowInsetsCompat;
|
||||||
|
|
||||||
|
public class PreviewAutoActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
EdgeToEdge.enable(this);
|
||||||
|
setContentView(R.layout.activity_preview_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;
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.example.generator;
|
package com.example.generator;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.res.ColorStateList;
|
import android.content.res.ColorStateList;
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
@@ -7,8 +8,8 @@ import android.graphics.BitmapFactory;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Base64;
|
import android.util.Base64;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import android.view.ContextThemeWrapper;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.RadioButton;
|
import android.widget.RadioButton;
|
||||||
@@ -21,16 +22,13 @@ import androidx.core.graphics.Insets;
|
|||||||
import androidx.core.view.ViewCompat;
|
import androidx.core.view.ViewCompat;
|
||||||
import androidx.core.view.WindowInsetsCompat;
|
import androidx.core.view.WindowInsetsCompat;
|
||||||
|
|
||||||
|
import com.google.android.material.button.MaterialButton;
|
||||||
|
|
||||||
public class StartingPreview extends AppCompatActivity {
|
public class StartingPreview extends AppCompatActivity {
|
||||||
|
|
||||||
private int mainColorResP = 0;
|
|
||||||
private int bgTintResP = 0;
|
|
||||||
private String ColorP = "";
|
private String ColorP = "";
|
||||||
private int mainColorResS = 0;
|
|
||||||
private int bgTintResS = 0;
|
|
||||||
private String ColorS = "";
|
private String ColorS = "";
|
||||||
private EditText numPosEdit;
|
private int mainColorResP = 0;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
@@ -43,84 +41,24 @@ public class StartingPreview extends AppCompatActivity {
|
|||||||
return insets;
|
return insets;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (EventsActivity.Data.getColorS() != null) {
|
||||||
|
ColorS = EventsActivity.Data.getColorS();
|
||||||
switch (EventsActivity.Data.getColorS()) {
|
}
|
||||||
case "Orange":
|
if (EventsActivity.Data.getColorP() != null) {
|
||||||
ColorS = "Orange";
|
ColorP = EventsActivity.Data.getColorP();
|
||||||
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 ()) {
|
switch (ColorP) {
|
||||||
case "Orange":
|
case "Green": mainColorResP = R.color.greenMain; break;
|
||||||
ColorP = "Orange";
|
case "Blue": mainColorResP = R.color.blueMain; break;
|
||||||
mainColorResP = R.color.orangeMain;
|
case "Pink": mainColorResP = R.color.pinkMain; break;
|
||||||
bgTintResP = R.color.orangeMain_bg;
|
case "Purple": mainColorResP = R.color.purpleMain; break;
|
||||||
break;
|
case "Red": mainColorResP = R.color.redMain; break;
|
||||||
case "Green":
|
case "Yellow": mainColorResP = R.color.yellowMain; break;
|
||||||
ColorP = "Green";
|
default: mainColorResP = R.color.orangeMain; break;
|
||||||
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 imageView2 = findViewById(R.id.imageView2);
|
ImageView imageView2 = findViewById(R.id.imageView2);
|
||||||
String imageBase64 = EventsActivity.Data.getBase64();
|
String imageBase64 = EventsActivity.Data.getBase64();
|
||||||
|
|
||||||
@@ -135,41 +73,51 @@ public class StartingPreview extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
RadioGroup radioGroup = findViewById(R.id.radioGroup);
|
RadioGroup radioGroup = findViewById(R.id.radioGroup);
|
||||||
int totalPositions;
|
int totalPositions = EventsActivity.Data.getNumPos();
|
||||||
totalPositions = EventsActivity.Data.getNumPos();
|
|
||||||
int whiteColor = ContextCompat.getColor(this, R.color.white);
|
int whiteColor = ContextCompat.getColor(this, R.color.white);
|
||||||
int mainColor = ContextCompat.getColor(this, R.color.orangeMain);
|
int activeMainColor = ContextCompat.getColor(this, mainColorResP);
|
||||||
ColorStateList buttonTintList = ColorStateList.valueOf(mainColor);
|
ColorStateList buttonTintList = ColorStateList.valueOf(activeMainColor);
|
||||||
RadioGroup.LayoutParams layoutParams = new RadioGroup.LayoutParams(
|
|
||||||
RadioGroup.LayoutParams.MATCH_PARENT,
|
|
||||||
RadioGroup.LayoutParams.WRAP_CONTENT
|
|
||||||
);
|
|
||||||
|
|
||||||
for (int i = 1; i <= totalPositions; i++) {
|
for (int i = 1; i <= totalPositions; i++) {
|
||||||
RadioButton radioButton = new RadioButton(this);
|
RadioButton radioButton = new RadioButton(this);
|
||||||
|
|
||||||
radioButton.setId(View.generateViewId());
|
radioButton.setId(View.generateViewId());
|
||||||
radioButton.setText("Starting Position " + i);
|
radioButton.setText("Starting Position " + i);
|
||||||
radioButton.setTextSize(20);
|
radioButton.setTextSize(20);
|
||||||
radioButton.setTextColor(whiteColor);
|
radioButton.setTextColor(whiteColor);
|
||||||
|
|
||||||
radioButton.setButtonTintList(buttonTintList);
|
radioButton.setButtonTintList(buttonTintList);
|
||||||
|
|
||||||
|
|
||||||
radioGroup.addView(radioButton);
|
radioGroup.addView(radioButton);
|
||||||
|
|
||||||
}
|
}
|
||||||
Button backButton = (Button) findViewById(R.id.backButton);
|
|
||||||
Button nextButton = (Button) findViewById(R.id.buttonNext);
|
MaterialButton backButton = findViewById(R.id.backButton);
|
||||||
|
MaterialButton nextButton = findViewById(R.id.buttonNext);
|
||||||
|
MaterialButton backButtonFake = findViewById(R.id.BackButtonFake);
|
||||||
|
MaterialButton nextButtonFake = findViewById(R.id.ButtonNextFake);
|
||||||
|
|
||||||
|
if (mainColorResP != 0) {
|
||||||
|
int actualColor = ContextCompat.getColor(this, mainColorResP);
|
||||||
|
ColorStateList tintList = ColorStateList.valueOf(actualColor);
|
||||||
|
|
||||||
|
ViewCompat.setBackgroundTintList(nextButton, tintList);
|
||||||
|
ViewCompat.setBackgroundTintList(backButton, tintList);
|
||||||
|
ViewCompat.setBackgroundTintList(nextButtonFake, tintList);
|
||||||
|
ViewCompat.setBackgroundTintList(backButtonFake, tintList);
|
||||||
|
|
||||||
|
nextButton.setStrokeWidth(0);
|
||||||
|
backButton.setStrokeWidth(0);
|
||||||
|
nextButtonFake.setStrokeWidth(0);
|
||||||
|
backButtonFake.setStrokeWidth(0);
|
||||||
|
}
|
||||||
|
|
||||||
backButton.setOnClickListener((v) -> {
|
backButton.setOnClickListener((v) -> {
|
||||||
Intent intent = new Intent(this, MakeStartingActivity.class);
|
Intent intent = new Intent(this, MakeStartingActivity.class);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
});
|
});
|
||||||
|
|
||||||
nextButton.setOnClickListener((v) -> {
|
nextButton.setOnClickListener((v) -> {
|
||||||
Intent intent = new Intent(this, MakeAutoActivity.class);
|
Intent intent = new Intent(this, MakeAutoActivity.class);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
tools:context=".ColorActivity">
|
tools:context=".ColorActivity">
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button_next"
|
android:id="@+id/nextButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="4dp"
|
android:layout_marginStart="4dp"
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
app:cornerRadius="0dp"
|
app:cornerRadius="0dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toEndOf="@+id/button_back" />
|
app:layout_constraintStart_toEndOf="@+id/backButton" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button_nav_example"
|
android:id="@+id/button_nav_example"
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
android:backgroundTint="@color/orangeMain"
|
android:backgroundTint="@color/orangeMain"
|
||||||
android:text="Next Example"
|
android:text="Next Example"
|
||||||
app:cornerRadius="0dp"
|
app:cornerRadius="0dp"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/button_next"
|
app:layout_constraintBottom_toTopOf="@+id/nextButton"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toEndOf="@+id/button_nav_example2" />
|
app:layout_constraintStart_toEndOf="@+id/button_nav_example2" />
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
android:backgroundTint="@color/orangeMain"
|
android:backgroundTint="@color/orangeMain"
|
||||||
android:text="Back Example"
|
android:text="Back Example"
|
||||||
app:cornerRadius="0dp"
|
app:cornerRadius="0dp"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/button_next"
|
app:layout_constraintBottom_toTopOf="@+id/nextButton"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/button_nav_example"
|
app:layout_constraintEnd_toStartOf="@+id/button_nav_example"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
app:strokeWidth="5dp" />
|
app:strokeWidth="5dp" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button_back"
|
android:id="@+id/backButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
android:text="Back"
|
android:text="Back"
|
||||||
app:cornerRadius="0dp"
|
app:cornerRadius="0dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/button_next"
|
app:layout_constraintEnd_toStartOf="@+id/nextButton"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.Guideline
|
<androidx.constraintlayout.widget.Guideline
|
||||||
|
|||||||
79
Generator/app/src/main/res/layout/activity_debug.xml
Normal file
79
Generator/app/src/main/res/layout/activity_debug.xml
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
<?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/StartingPreview" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/StartingPreview"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="StartingPreview"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/MakeStarting"
|
||||||
|
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/StartingPreview"
|
||||||
|
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>
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textColorHint="@color/gray_hint"
|
android:textColorHint="@color/gray_hint"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/button_back"
|
app:layout_constraintBottom_toTopOf="@+id/backButton"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/event4API"
|
app:layout_constraintEnd_toStartOf="@+id/event4API"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/event3name" />
|
app:layout_constraintTop_toBottomOf="@+id/event3name" />
|
||||||
@@ -126,13 +126,13 @@
|
|||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textColorHint="@color/gray_hint"
|
android:textColorHint="@color/gray_hint"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/button_next"
|
app:layout_constraintBottom_toTopOf="@+id/nextButton"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toEndOf="@+id/event4name"
|
app:layout_constraintStart_toEndOf="@+id/event4name"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/event3API" />
|
app:layout_constraintTop_toBottomOf="@+id/event3API" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button_back"
|
android:id="@+id/backButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
@@ -141,11 +141,11 @@
|
|||||||
android:text="Back"
|
android:text="Back"
|
||||||
app:cornerRadius="0dp"
|
app:cornerRadius="0dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/button_next"
|
app:layout_constraintEnd_toStartOf="@+id/nextButton"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button_next"
|
android:id="@+id/nextButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="4dp"
|
android:layout_marginStart="4dp"
|
||||||
@@ -155,5 +155,5 @@
|
|||||||
app:cornerRadius="0dp"
|
app:cornerRadius="0dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toEndOf="@+id/button_back" />
|
app:layout_constraintStart_toEndOf="@+id/backButton" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@@ -17,14 +17,14 @@
|
|||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="24sp"
|
android:textSize="24sp"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/button_next"
|
app:layout_constraintBottom_toTopOf="@+id/nextButton"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.25" />
|
app:layout_constraintVertical_bias="0.25" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button_next"
|
android:id="@+id/nextButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="4dp"
|
android:layout_marginStart="4dp"
|
||||||
@@ -34,19 +34,15 @@
|
|||||||
app:cornerRadius="0dp"
|
app:cornerRadius="0dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toEndOf="@+id/EditButton" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/EditButton"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginStart="8dp"
|
|
||||||
android:layout_marginEnd="4dp"
|
|
||||||
android:backgroundTint="@color/orangeMain"
|
|
||||||
android:text="Edit Existing"
|
|
||||||
app:cornerRadius="0dp"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toStartOf="@+id/button_next"
|
|
||||||
app:layout_constraintStart_toStartOf="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>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
app:layout_constraintTop_toBottomOf="@+id/button_image" />
|
app:layout_constraintTop_toBottomOf="@+id/button_image" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button_next"
|
android:id="@+id/nextButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="4dp"
|
android:layout_marginStart="4dp"
|
||||||
@@ -33,11 +33,11 @@
|
|||||||
app:cornerRadius="0dp"
|
app:cornerRadius="0dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toEndOf="@+id/button_back" />
|
app:layout_constraintStart_toEndOf="@+id/backButton" />
|
||||||
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button_back"
|
android:id="@+id/backButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
android:text="Back"
|
android:text="Back"
|
||||||
app:cornerRadius="0dp"
|
app:cornerRadius="0dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/button_next"
|
app:layout_constraintEnd_toStartOf="@+id/nextButton"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
android:ems="10"
|
android:ems="10"
|
||||||
android:hint="Number of postions 3-8"
|
android:hint="Number of postions 3-8"
|
||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/button_next"
|
app:layout_constraintBottom_toTopOf="@+id/nextButton"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:digits="345678"
|
android:digits="345678"
|
||||||
|
|||||||
@@ -9,8 +9,149 @@
|
|||||||
tools:context=".MakeAutoActivity">
|
tools:context=".MakeAutoActivity">
|
||||||
|
|
||||||
|
|
||||||
|
<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:digits="1234567890"
|
||||||
|
android:ems="10"
|
||||||
|
android:hint="Number of scoring objects"
|
||||||
|
android:imeOptions="actionDone"
|
||||||
|
android:inputType="number"
|
||||||
|
android:maxLength="1"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textColorHint="@color/gray_hint"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button_next"
|
android:id="@+id/nextButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="4dp"
|
android:layout_marginStart="4dp"
|
||||||
@@ -20,11 +161,11 @@
|
|||||||
app:cornerRadius="0dp"
|
app:cornerRadius="0dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toEndOf="@+id/button_back" />
|
app:layout_constraintStart_toEndOf="@+id/backButton" />
|
||||||
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button_back"
|
android:id="@+id/backButton"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="8dp"
|
||||||
@@ -33,7 +174,7 @@
|
|||||||
android:text="Back"
|
android:text="Back"
|
||||||
app:cornerRadius="0dp"
|
app:cornerRadius="0dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/button_next"
|
app:layout_constraintEnd_toStartOf="@+id/nextButton"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
177
Generator/app/src/main/res/layout/activity_make_auto2.xml
Normal file
177
Generator/app/src/main/res/layout/activity_make_auto2.xml
Normal file
@@ -0,0 +1,177 @@
|
|||||||
|
<?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" />
|
||||||
|
|
||||||
|
<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" />
|
||||||
|
|
||||||
|
<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/NumOfButton2"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/textPine3" />
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/NumOfButton2"
|
||||||
|
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/textPine3" />
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/NumOfButton3"
|
||||||
|
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/NumOfButton4"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/NumOfButton1" />
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/NumOfButton4"
|
||||||
|
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/NumOfButton3"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/NumOfButton2" />
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/NumOfButton5"
|
||||||
|
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/NumOfButton6"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/NumOfButton3" />
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/NumOfButton6"
|
||||||
|
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/NumOfButton5"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/NumOfButton4" />
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/NumOfButton7"
|
||||||
|
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/NumOfButton8"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/NumOfButton5" />
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/NumOfButton8"
|
||||||
|
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/NumOfButton7"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/NumOfButton6" />
|
||||||
|
|
||||||
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/NumOfButton9"
|
||||||
|
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/NumOfButton7" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
10
Generator/app/src/main/res/layout/activity_preview_auto.xml
Normal file
10
Generator/app/src/main/res/layout/activity_preview_auto.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?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=".PreviewAutoActivity">
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
4
Generator/app/src/main/res/values/dimens.xml
Normal file
4
Generator/app/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<dimen name="default_stroke_width">3dp</dimen>
|
||||||
|
</resources>
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<style name="RedP">
|
<style name="RedP">
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
<item name="android:background">@color/black</item>
|
<item name="android:background">@color/redMain_bg</item>
|
||||||
<item name="android:backgroundTint">@color/redMain_bg</item>
|
<item name="android:backgroundTint">@color/redMain_bg</item>
|
||||||
<item name="strokeColor">@color/redMain</item>
|
<item name="strokeColor">@color/redMain</item>
|
||||||
<item name="strokeWidth">5dp</item>
|
<item name="strokeWidth">5dp</item>
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<style name="RedS">
|
<style name="RedS">
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
<item name="android:background">@color/black</item>
|
<item name="android:background">@color/redMain_bg</item>
|
||||||
<item name="android:backgroundTint">@color/redMain_bg</item>
|
<item name="android:backgroundTint">@color/redMain_bg</item>
|
||||||
<item name="strokeColor">@color/redMain</item>
|
<item name="strokeColor">@color/redMain</item>
|
||||||
<item name="strokeWidth">5dp</item>
|
<item name="strokeWidth">5dp</item>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
<style name="BlueP">
|
<style name="BlueP">
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
<item name="android:background">@color/black</item>
|
<item name="android:background">@color/blueMain_bg</item>
|
||||||
<item name="android:backgroundTint">@color/blueMain_bg</item>
|
<item name="android:backgroundTint">@color/blueMain_bg</item>
|
||||||
<item name="strokeColor">@color/blueMain</item>
|
<item name="strokeColor">@color/blueMain</item>
|
||||||
<item name="strokeWidth">5dp</item>
|
<item name="strokeWidth">5dp</item>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
<style name="BlueS">
|
<style name="BlueS">
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
<item name="android:background">@color/black</item>
|
<item name="android:background">@color/blueMain_bg</item>
|
||||||
<item name="android:backgroundTint">@color/blueMain_bg</item>
|
<item name="android:backgroundTint">@color/blueMain_bg</item>
|
||||||
<item name="strokeColor">@color/blueMain</item>
|
<item name="strokeColor">@color/blueMain</item>
|
||||||
<item name="strokeWidth">5dp</item>
|
<item name="strokeWidth">5dp</item>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
<style name="PinkP">
|
<style name="PinkP">
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
<item name="android:background">@color/black</item>
|
<item name="android:background">@color/pinkMain_bg</item>
|
||||||
<item name="android:backgroundTint">@color/pinkMain_bg</item>
|
<item name="android:backgroundTint">@color/pinkMain_bg</item>
|
||||||
<item name="strokeColor">@color/pinkMain</item>
|
<item name="strokeColor">@color/pinkMain</item>
|
||||||
<item name="strokeWidth">5dp</item>
|
<item name="strokeWidth">5dp</item>
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
<style name="PinkS">
|
<style name="PinkS">
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
<item name="android:background">@color/black</item>
|
<item name="android:background">@color/pinkMain_bg</item>
|
||||||
<item name="android:backgroundTint">@color/pinkMain_bg</item>
|
<item name="android:backgroundTint">@color/pinkMain_bg</item>
|
||||||
<item name="strokeColor">@color/pinkMain</item>
|
<item name="strokeColor">@color/pinkMain</item>
|
||||||
<item name="strokeWidth">5dp</item>
|
<item name="strokeWidth">5dp</item>
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
<style name="YellowP">
|
<style name="YellowP">
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
<item name="android:background">@color/black</item>
|
<item name="android:background">@color/yellowMain_bg</item>
|
||||||
<item name="android:backgroundTint">@color/yellowMain_bg</item>
|
<item name="android:backgroundTint">@color/yellowMain_bg</item>
|
||||||
<item name="strokeColor">@color/yellowMain</item>
|
<item name="strokeColor">@color/yellowMain</item>
|
||||||
<item name="strokeWidth">5dp</item>
|
<item name="strokeWidth">5dp</item>
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
<style name="YellowS">
|
<style name="YellowS">
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
<item name="android:background">@color/black</item>
|
<item name="android:background">@color/yellowMain_bg</item>
|
||||||
<item name="android:backgroundTint">@color/yellowMain_bg</item>
|
<item name="android:backgroundTint">@color/yellowMain_bg</item>
|
||||||
<item name="strokeColor">@color/yellowMain</item>
|
<item name="strokeColor">@color/yellowMain</item>
|
||||||
<item name="strokeWidth">5dp</item>
|
<item name="strokeWidth">5dp</item>
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
<style name="GreenP">
|
<style name="GreenP">
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
<item name="android:background">@color/black</item>
|
<item name="android:background">@color/greenMain_bg</item>
|
||||||
<item name="android:backgroundTint">@color/greenMain_bg</item>
|
<item name="android:backgroundTint">@color/greenMain_bg</item>
|
||||||
<item name="strokeColor">@color/greenMain</item>
|
<item name="strokeColor">@color/greenMain</item>
|
||||||
<item name="strokeWidth">5dp</item>
|
<item name="strokeWidth">5dp</item>
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
|
|
||||||
<style name="orangeP">
|
<style name="orangeP">
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
<item name="android:background">@color/black</item>
|
<item name="android:background">@color/orangeMain_bg</item>
|
||||||
<item name="android:backgroundTint">@color/orangeMain_bg</item>
|
<item name="android:backgroundTint">@color/orangeMain_bg</item>
|
||||||
<item name="strokeColor">@color/orangeMain</item>
|
<item name="strokeColor">@color/orangeMain</item>
|
||||||
<item name="strokeWidth">5dp</item>
|
<item name="strokeWidth">5dp</item>
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
|
|
||||||
<style name="orangeS">
|
<style name="orangeS">
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
<item name="android:background">@color/black</item>
|
<item name="android:background">@color/orangeMain_bg</item>
|
||||||
<item name="android:backgroundTint">@color/orangeMain_bg</item>
|
<item name="android:backgroundTint">@color/orangeMain_bg</item>
|
||||||
<item name="strokeColor">@color/orangeMain</item>
|
<item name="strokeColor">@color/orangeMain</item>
|
||||||
<item name="strokeWidth">5dp</item>
|
<item name="strokeWidth">5dp</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user