Android AVD keyboard input not working all the time on xUbuntu OS

后端 未结 4 1179
别那么骄傲
别那么骄傲 2020-12-16 01:31

I have a weird behavior on my xubuntu machine and I don\'t know why.

  1. Start the emulator and have a EditText in the app.
  2. Tap on EditText and the andro
相关标签:
4条回答
  • 2020-12-16 01:38

    Mine was caused because I was using a keyboard layout different from English US (I could notice strange symbols when I typed in the emulator settings screen - the three dots as OP pointed out). After I changed my keyboard layout the problem is gone.

    0 讨论(0)
  • 2020-12-16 01:41

    You see, the main case is Android Emulator Window don't have the proper focus even when you click on it. Yes, you can do any touch-operations, but frame still appears non-focused.

    I've found a workaround for that:

    1. Go to your Window Manager
    2. Find Focus tab
    3. Change Focus Model -> "Focus follow mouse"
    4. (Optional) Apply proper delay (I've put it to the lowest value)
    5. Disable "Automatically raise windows when they receive focus" option bellow.

    Now, whenever you hang your cursor above the emulator window it'll gain correct focusing state and you'd be able to use you keyboard just fine.

    0 讨论(0)
  • 2020-12-16 01:55

    If you open the Window Manager Tweaks menu and go to Focus tab then you can select the Do nothing option under the When a window raises itself. This worked for me multiple times. (Different ubuntu verions)

    0 讨论(0)
  • 2020-12-16 01:59

    On Ubuntu 18.04 and 19.04 this happens when you have multiple keyboard layouts installed on your system. Try to select your first keyboard layout from the list to make virtual keyboard work in emulator.

    Strangely, it doesn't matter which particular layout you have selected, or if it matches with language in the emulator, but looks like it is related to the position of the keyboard layout in the list.

    0 讨论(0)
提交回复
热议问题