我导入项目https://github.com/AnySoftKeyboard/AnySoftKeyboard

我遇到一些错误,例如

import com.anysoftkeyboard.api.KeyCodes;
import com.menny.android.anysoftkeyboard.R;


导入com.anysoftkeyboard.api无法解析

和错误
错误:错误:找不到与给定名称匹配的资源:attr'iconKeySpace'。

 <!-- should support normal, android:state_pressed, feedback, android:state_pressed+feedback, android:state_checked, state_checked+feedback -->
        <item name="iconKeyShift">@drawable/dark_key_shift_set</item>
        <!-- should support normal, android:state_pressed, feedback, android:state_pressed+feedback, android:state_checked, state_checked+feedback -->
        <item name="iconKeyControl">@drawable/dark_key_control_set</item>
        <!-- should support normal, feedback -->
        <item name="iconKeyBackspace">@drawable/dark_key_delete_set</item>
        <!-- should support normal, feedback -->
        <item name="iconKeySpace">@drawable/dark_key_space_set</item>
        <!-- should support normal, feedback -->
        <item name="iconKeyTab">@drawable/dark_key_tab_set</item>

最佳答案

您需要将AnySoftKeyBoard-API项目添加为库。您可以从此链接下载。


  https://github.com/AnySoftKeyboard/AnySoftKeyboard-API

关于android - 打开AnySoftKeyboard时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14633732/

10-12 00:37