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) {
|
||||
root.addView(
|
||||
Button(root.context).apply {
|
||||
text = text
|
||||
setOnClickListener { runnable?.run() }
|
||||
gravity = Gravity.CENTER_HORIZONTAL
|
||||
Button(root.context).also {
|
||||
it.text = text
|
||||
it.setOnClickListener { runnable?.run() }
|
||||
it.gravity = Gravity.CENTER_HORIZONTAL
|
||||
})
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue