update demo method
This commit is contained in:
parent
1c27469f0f
commit
e4ee08c75e
@ -68,7 +68,15 @@ class MainActivity : Activity() {
|
|||||||
|
|
||||||
btn.setOnClickListener {
|
btn.setOnClickListener {
|
||||||
val txt: String = intxt.text.toString()
|
val txt: String = intxt.text.toString()
|
||||||
ble?.setAlign(PrinterBle.ALIGN_CENTER)?.addText(txt)
|
ble?.setSize(2,1)
|
||||||
|
ble?.setAlign(PrinterBle.ALIGN_CENTER)
|
||||||
|
ble?.addTextln("MTFoS Shop")
|
||||||
|
ble?.resetSize()
|
||||||
|
ble?.setAlign(PrinterBle.ALIGN_RIGHT)
|
||||||
|
ble?.addTextln("MTFoS Shop")
|
||||||
|
ble?.addHR()
|
||||||
|
ble?.setAlign(PrinterBle.ALIGN_LEFT)
|
||||||
|
ble?.addText(txt)
|
||||||
ble?.sendQueue()
|
ble?.sendQueue()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user