Skip to content
Snippets Groups Projects
Unverified Commit 9aee06a7 authored by AC5636's avatar AC5636 :ghost:
Browse files

Update

parent 901c9e36
No related branches found
No related tags found
No related merge requests found
![Alt text](screenshots/ex3-1.png)
![Alt text](screenshots/ex3-2.png)
......@@ -52,7 +52,6 @@ class MainActivity : AppCompatActivity() {
fun numberClicked(view: View?) {
// get clicked view as a textview and it text as a string
val text = (view as TextView).text.toString()
println(text)
// modify string to int and decrease by one (array's start position 0)
val int = text.toInt() - 1
// show selected employee data in UI, call earlier made function
......@@ -63,6 +62,7 @@ class MainActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
// By default show employee 1
showEmployeeData(0)
}
}
\ No newline at end of file
E03BuildUIWithLayoutEditor2/screenshots/ex3-1.png

122 KiB

E03BuildUIWithLayoutEditor2/screenshots/ex3-2.png

263 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment