InputButton fix
This commit is contained in:
parent
73fa9f5814
commit
0835a487c0
1 changed files with 4 additions and 4 deletions
|
@ -16,10 +16,10 @@ class InputButton() : Element() {
|
||||||
|
|
||||||
override fun addToLayout(root: LinearLayout) {
|
override fun addToLayout(root: LinearLayout) {
|
||||||
root.addView(
|
root.addView(
|
||||||
Button(root.context).apply {
|
Button(root.context).also {
|
||||||
text = text
|
it.text = text
|
||||||
setOnClickListener { runnable?.run() }
|
it.setOnClickListener { runnable?.run() }
|
||||||
gravity = Gravity.CENTER_HORIZONTAL
|
it.gravity = Gravity.CENTER_HORIZONTAL
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue