私はMMで問題なく動作するキーボードを開発しました。ところでノーガットにはレイアウトの問題がありますので、このイメージをよく理解してください:http://imgur.com/a/IHfeZ。NougatのAndroidキーボード、カスタムポップアウト
第1の画像はノーガット(ポップアップは完全に表示されません)です。第2の画像はMMに表示されるようです(すべての線が正しく表示されます)。
私はポップアップをカスタマイズするには、このXMLを使用:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@color/aosp_pressed">
<android.inputmethodservice.KeyboardView
android:layout_gravity="bottom"
android:id="@android:id/keyboardView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:keyPreviewLayout="@layout/preview"
android:keyBackground="@drawable/key_background"
android:keyTextColor="#fff"
android:background="@color/aosp_background"
android:keyTextSize="25sp"/>
<ImageButton android:id="@android:id/closeButton"
android:background="@color/aosp_pressed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:clickable="true"
android:src="@drawable/ic_close_black" />
</LinearLayout>
あなたは問題がキーボードの外にあったされていないポップアップの位置によって引き起こされる見ることができるように。どうすればこの問題を解決できますか? おかげさまで皆に感謝します。
問題を修正しますか?私は同じ問題を抱えています。 :s – DaniG