Added controll buttons for "corrupt" and "QR code"
This commit is contained in:
parent
de2e74149e
commit
499675d467
2 changed files with 11 additions and 2 deletions
|
@ -25,6 +25,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
private lateinit var button4: Button
|
private lateinit var button4: Button
|
||||||
private lateinit var button5: Button
|
private lateinit var button5: Button
|
||||||
private lateinit var button6: Button
|
private lateinit var button6: Button
|
||||||
|
private lateinit var button7: Button
|
||||||
private var selectedButton: Button? = null
|
private var selectedButton: Button? = null
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,8 +46,9 @@ class MainActivity : AppCompatActivity() {
|
||||||
button4 = findViewById(R.id.button4)
|
button4 = findViewById(R.id.button4)
|
||||||
button5 = findViewById(R.id.button5)
|
button5 = findViewById(R.id.button5)
|
||||||
button6 = findViewById(R.id.button6)
|
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 ->
|
buttons.forEachIndexed { index, btn ->
|
||||||
btn.setOnClickListener {
|
btn.setOnClickListener {
|
||||||
|
|
|
@ -52,7 +52,14 @@
|
||||||
style="@style/UnselectedButton"
|
style="@style/UnselectedButton"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="100dp"
|
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>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue