Hi How can I show the variable on the TextView screen.
var a=(labelProbArray[0][0])
I want to show variable a in TextView.
Thanks...
You can also help with its display with the button.
You can play with textview by simply declaring an instance of it in your activity file.
Try this -
private lateinit var textView:TextView
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
textView = findViewById(R.id.text2)
var a=(labelProbArray[0][0])
textView.text= a
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.