Added controll buttons for "corrupt" and "QR code"

This commit is contained in:
Roy-vl 2024-06-24 22:24:07 +02:00
parent de2e74149e
commit 499675d467
2 changed files with 11 additions and 2 deletions

View file

@ -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 {

View file

@ -52,7 +52,14 @@
style="@style/UnselectedButton"
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="6" />
android:text="corrupt" />
<Button
android:id="@+id/button7"
style="@style/UnselectedButton"
android:layout_width="match_parent"
android:layout_height="100dp"
android:text="QR" />
</LinearLayout>