added level option in checkbox screen
This commit is contained in:
@@ -2,7 +2,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" />
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" />
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
|
||||
@@ -46,6 +46,8 @@ public class Data {
|
||||
|
||||
private String CheckBox4;
|
||||
|
||||
private int climbLevels;
|
||||
|
||||
|
||||
public String getBase64() {
|
||||
return base64;
|
||||
@@ -286,6 +288,12 @@ public class Data {
|
||||
return CheckBox4;
|
||||
}
|
||||
|
||||
public int getClimbLevels(){
|
||||
return climbLevels;}
|
||||
|
||||
public void setClimbLevels(int climbLevels){
|
||||
this.climbLevels = climbLevels;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ public class MakeCheckActivity extends AppCompatActivity {
|
||||
EditText Ob2 = (EditText) findViewById(R.id.CheckBox2);
|
||||
EditText Ob3 = (EditText) findViewById(R.id.CheckBox3);
|
||||
EditText Ob4 = (EditText) findViewById(R.id.CheckBox4);
|
||||
EditText Ob5 = (EditText) findViewById(R.id.Levels);
|
||||
Ob1.setVisibility(View.GONE);
|
||||
Ob2.setVisibility(View.GONE);
|
||||
Ob3.setVisibility(View.GONE);
|
||||
@@ -97,6 +98,7 @@ public class MakeCheckActivity extends AppCompatActivity {
|
||||
EventsActivity.Data.setCheckBox2(Ob2.getText().toString());
|
||||
EventsActivity.Data.setCheckBox3(Ob3.getText().toString());
|
||||
EventsActivity.Data.setCheckBox4(Ob4.getText().toString());
|
||||
EventsActivity.Data.setClimbLevels(Integer.parseInt(Ob5.getText().toString()));
|
||||
EventsActivity.Data.setNumCheckBoxes(Integer.parseInt(CheckBoxObjects.getText().toString()));
|
||||
Intent intent = new Intent(this, MakeAutoActivity2.class);
|
||||
startActivity(intent);
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textPine4"
|
||||
android:id="@+id/textViewTitle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="32dp"
|
||||
android:ems="10"
|
||||
@@ -163,7 +163,7 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textPine4" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/textViewTitle" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/nextButton"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
tools:context=".MakeAutoActivity2">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textPine4"
|
||||
android:id="@+id/textViewTitle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="32dp"
|
||||
android:ems="10"
|
||||
@@ -33,7 +33,7 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textPine4" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/textViewTitle" />
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tabLayout"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textPine4"
|
||||
android:id="@+id/textViewTitle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="32dp"
|
||||
android:ems="10"
|
||||
@@ -37,6 +37,21 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/NumCheckBox" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/Levels"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="How many levels?"
|
||||
android:imeOptions="actionDone"
|
||||
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_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView2" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/CheckBox2"
|
||||
android:layout_width="0dp"
|
||||
@@ -94,7 +109,7 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textPine4" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/textViewTitle" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/nextButton"
|
||||
@@ -127,13 +142,35 @@
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="there is 2 check boxes by defualt you can't edit, in auto 'doesn't have auto' and in teleop 'robot dead'"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="there is 2 check boxes by defualt you can't edit, in auto 'doesn't have auto' and in teleop 'robot dead'"
|
||||
android:textColor="@color/white"
|
||||
app:layout_constraintBottom_toTopOf="@+id/backButton"
|
||||
app:layout_constraintBottom_toTopOf="@+id/guideline"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/CheckBox3" />
|
||||
|
||||
<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.5"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="How many climb levels"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.545"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/guideline" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -9,7 +9,7 @@
|
||||
tools:context=".MakeTeleActivity">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textPine4"
|
||||
android:id="@+id/textViewTitle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="32dp"
|
||||
android:ems="10"
|
||||
@@ -33,7 +33,7 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textPine4" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/textViewTitle" />
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tabLayout"
|
||||
|
||||
Reference in New Issue
Block a user