finsihed generator
This commit is contained in:
@@ -4,6 +4,7 @@ import android.content.Intent;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.os.Bundle;
|
||||
import android.os.Environment;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.activity.EdgeToEdge;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
@@ -91,6 +92,8 @@ public class EndActivity extends AppCompatActivity {
|
||||
jsonObject.put("climbLevels", EventsActivity.Data.getClimbLevels());
|
||||
|
||||
String jsonString = jsonObject.toString(4);
|
||||
TextView textView = findViewById(R.id.textView4);
|
||||
textView.setText(jsonString);
|
||||
|
||||
|
||||
File downloadDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
|
||||
@@ -106,9 +109,6 @@ public class EndActivity extends AppCompatActivity {
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
Intent intent = new Intent(this, MakeCheckActivity.class);
|
||||
startActivity(intent);
|
||||
});
|
||||
|
||||
switch (ColorP) {
|
||||
|
||||
@@ -48,5 +48,37 @@
|
||||
app:layout_constraintEnd_toStartOf="@+id/nextButton"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView5"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/white"
|
||||
tools:layout_editor_absoluteX="1dp"
|
||||
tools:layout_editor_absoluteY="53dp" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="409dp"
|
||||
android:layout_height="649dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/nextButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textPine4">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView4"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Preview of file"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user