horologist icon indicating copy to clipboard operation
horologist copied to clipboard

[Feature Suggestion] TextField Composable for Wear OS

Open uripre opened this issue 1 year ago • 4 comments

In my opinion, it's crazy that we have to implement text input with startActivityForResult/RemoteInputIntentHelper etc. I think there should be a TextField composable to offer this functionality out of the box.

Would love to hear thoughts.

uripre avatar Aug 08 '23 15:08 uripre

Discussed here

https://github.com/google/horologist/issues/1355

We could implement something, but basically combining a text input with the launch for result.

yschimke avatar Aug 08 '23 17:08 yschimke

Thanks for the reference, Yuri. I think we should. Even if the behavior of TextInputs on Wear OS is to launch a popup over the entire screen and then return to the app, I think this behavior should be seamlessly encapsulated in a TextInput component.

uripre avatar Aug 08 '23 18:08 uripre

My suggestion is to implement a composable which use KeyboardInputController classes because RemoteInput is not always supported on non-wearOS wearables like some Huawei watches and Oppo. Now is difficult to publish apps stores different from Google play because of this problem

Fra078 avatar Aug 09 '23 23:08 Fra078