Anyone figured out yet how to do `textView.setImeH...
# compose
j
Anyone figured out yet how to do
textView.setImeHintLocales(LocaleList(someLocale))
with Compose's
TextField
? (It's an API that tells the keyboard what language to input, so it changes to Cyrillic, for example)
h
Unfortunately this is not possible at the moment with the existing TextField APIs. issuetracker.google.com/232974604 please +1.
j
I can't, @Halil Ozercan: > Access is denied to this issue
same 2
h
Ugh, I didn't realize it was internal. I couldn't find a bug for hintLocales in the public component. Would you like to create one?
j
Will do
I did find a public issue: https://issuetracker.google.com/issues/298005649, so I +1'd that one instead
So for those who replied same above (cc @Stylianos Gakis @andrew): if you're looking for something to +1, there it is 😄
a
Ah, I just was replying same because I couldn't see it either lol, though the issue doesn't apply to me necessarily, I'll +1 it. Seems an obvious shortcoming
❤️ 1
Looks like it's assigned too, hopefully a fix comes soon!
j
That this API isn't available yet tells me Duolingo isn't using Compose in their input screens yet, because it switches locale there 😄
a
Or they could be wrapping an android view for that specific instance 😉
j
Good point 😉
a
Granted, lord knows what their tech stack consists of other than it's native currently!
I haven't kept up with their tech blog enough haha
h
This should work with both the existing TextField APIs and the upcoming
BasicTextField2
K 1
jetpack compose 2
❤️ 1
j
Awesome! API looks exactly like how I would expect the Compose variant to look 🥳
h
yeah it was an easy one to add thanks to the existing abstractions around the similar concepts