自己定义的软键盘,感觉点击按钮时弹出的窗口不好看,可以直接禁用掉。
加入以下这条属性即可:android:keyPreviewLayout=”@null”
<android.inputmethodservice.KeyboardView
android:id="@+id/m_act_keyboard_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:background="@android:color/black"
android:keyPreviewLayout="@null"
android:keyTextColor="@android:color/darker_gray"
android:visibility="gone" />