2

我导入项目 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>
4

1 回答 1

3

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

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

于 2013-03-18T17:32:54.210 回答