'How can I append text and an output to a button?
I have a program that I'm writing to scan barcodes.
Right now, I can get the output from the reader to show up in the button. This is what the code looks like:
decodeCallback = DecodeCallback {
runOnUiThread {
binding.button.text= it.text
}
}
What I want it to say though is this:
"Search For:
foo"
All inside the button.
I am really new to kotlin so I'm struggling with this one.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|