我导入项目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>
答案 0 :(得分:2)
您需要将AnySoftKeyBoard-API项目添加为库。您可以从此链接下载。