locked
Alternate for Android.InputMethodServices.KeyboardView and Android.InputMethodServices.Keyboard RRS feed

  • Question

  • User379627 posted

    Alternate for Android.InputMethodServices.KeyboardView and Android.InputMethodServices.Keyboard to develop custom KeyBoard in xamarin as these are deprecated in API level 29

    Wednesday, March 3, 2021 3:17 PM

Answers

  • User379860 posted

    Are there any update for this issue, please reply is helpful, please click the Yes tab under the helpful answer.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, March 5, 2021 8:37 AM

All replies

  • User379860 posted

    This class was deprecated in API level 29. This class is deprecated because this is just a convenient UI widget class that >application developers can re-implement on top of existing public APIs. If you have already depended on this class, >consider copying the implementation from AOSP into your project or re-implementing a similar widget by yourselves

    From Google article. The only solution Google suggests is copying KeyboardView.java and Keyboard.java files to your local project from Android AOSP. But the code is java, you have to convert to C#, Based on the code, This means that you have to create your own view with all the keys, which also means handling all the click events like enter, delete and switching keyboards eg. to symbols etc. by yourself. Then I found a simiple solution, it create a service to handling all the click events.


    Xamarin forums are migrating to a new home on Microsoft Q&A! We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A! For more information, please refer to this sticky post.

    Thursday, March 4, 2021 9:22 AM
  • User379860 posted

    Are there any update for this issue, please reply is helpful, please click the Yes tab under the helpful answer.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, March 5, 2021 8:37 AM