2014-03-03 54 views
0

我想在我的自定义布局中包含Android系统的软键盘。在Android中包含XML布局中的软键盘

例子:

<include 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    layout="@layout/android.soft_keyboard" /> <!-- what to put this line to reference to system keyboard? --> 

注:我已经知道如何编程调用软键盘。在这种情况下,我只想在我的XML中调用它。

回答

0

我想在我的自定义布局中包含Android系统的软键盘。

这是不可能的。没有单一的“Android系统的软键盘”,因为设备通常会自行发货。该输入法编辑器来自另一个应用程序,而不是你的。而且,输入法编辑器不需要使用布局。