From 499675d4674a65a35b3272cb68875ec01bc5ea0f Mon Sep 17 00:00:00 2001 From: Roy-vl Date: Mon, 24 Jun 2024 22:24:07 +0200 Subject: [PATCH] Added controll buttons for "corrupt" and "QR code" --- .../main/java/com/example/prootcontrol/MainActivity.kt | 4 +++- app/src/main/res/layout/content_main.xml | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/example/prootcontrol/MainActivity.kt b/app/src/main/java/com/example/prootcontrol/MainActivity.kt index 2f397bf..7abd70f 100644 --- a/app/src/main/java/com/example/prootcontrol/MainActivity.kt +++ b/app/src/main/java/com/example/prootcontrol/MainActivity.kt @@ -25,6 +25,7 @@ class MainActivity : AppCompatActivity() { private lateinit var button4: Button private lateinit var button5: Button private lateinit var button6: Button + private lateinit var button7: Button private var selectedButton: Button? = null @@ -45,8 +46,9 @@ class MainActivity : AppCompatActivity() { button4 = findViewById(R.id.button4) button5 = findViewById(R.id.button5) button6 = findViewById(R.id.button6) + button7 = findViewById(R.id.button7) - val buttons = listOf(button1, button2, button3, button4, button5, button6) + val buttons = listOf(button1, button2, button3, button4, button5, button6, button7) buttons.forEachIndexed { index, btn -> btn.setOnClickListener { diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml index c8d4034..704fd27 100644 --- a/app/src/main/res/layout/content_main.xml +++ b/app/src/main/res/layout/content_main.xml @@ -52,7 +52,14 @@ style="@style/UnselectedButton" android:layout_width="match_parent" android:layout_height="100dp" - android:text="6" /> + android:text="corrupt" /> + +