https://kotlinlang.org logo
#compose
Title
# compose
a

Alan Yin

03/09/2021, 6:46 AM
How to implement on screen keyboard with Compose?
j

joakim

03/09/2021, 6:57 AM
Not sure what you are trying to do here? You want to write your own keyboard?
a

Alan Yin

03/09/2021, 7:08 AM
Implement a screen like this.
j

joakim

03/09/2021, 7:12 AM
Ok. That is just a column of rows of circular buttons.
so should be fairly non complex to lay out
a

Alan Yin

03/09/2021, 7:13 AM
Yes, but how to perform key press event?
j

joakim

03/09/2021, 7:13 AM
every button has a click listener which you can react to
a

Alan Yin

03/09/2021, 7:20 AM
I was expecting APIs like InputConnection, but I didn't find any.
c

Colton Idle

03/09/2021, 4:02 PM
@Alan Yin have you gotten a plain old button working? If you get a plain old button working then implementing a dialier like above should be trivial.
z

Zach Klippenstein (he/him) [MOD]

03/09/2021, 4:51 PM
You can also look at the implementation of Button for clues about how to write your own
6 Views