EditText Клавиатура Xamarin для Android не отображается - PullRequest
0 голосов
/ 25 июня 2018

Кто-нибудь знает, в чем здесь проблема?На симуляторе и на моем устройстве клавиатура отображается нормально при выборе EditText, но на определенном устройстве (Huawei lyo l01) - нет.

Что было опробовано: - очистить кэш разделов - очистить кэш клавиатуры- использовать другую клавиатуру (gboard и swiftkey)

Ничего из этого не помогло

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/txtScreenName"
        android:textIsSelectable="true"
        android:focusable="true"
        android:focusableInTouchMode="true" />
    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/txtMessage"
        android:textIsSelectable="true"
        android:focusable="true"
        android:focusableInTouchMode="true" />
    <CheckBox
        android:text="A"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/checkBox1" />
    <Button
        android:text="Add"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/btnAdd" />
    <Button
        android:text="Remove"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/btnRemove" />
    <Button
        android:text="Save"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/btnSave" />
    <ListView
        android:minWidth="25px"
        android:minHeight="25px"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/lvFollowers"
        android:clickable="true"
        android:choiceMode="singleChoice"
        android:contextClickable="true"
        android:layout_marginBottom="0.0dp" />
</LinearLayout>

1 Ответ

0 голосов
/ 26 июня 2018

Удалите focusable и focusableInTouchMode из EditTexts.focusableInTouchMode следует избегать, если вы не разрабатываете игру.Посмотрите на это

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...