我想在文件 「MultiAutoCompleteTextView.java」上實現我自己的Tokenizer庫,當我使用android文件'MultiAutoCompleteTextView.java'時,如何解決「com.android.internal.R無法解析」的錯誤,
,但我遇到了錯誤「com.android.internal.R cannot be resolved
」當我嘗試
進口「MultiAutoCompleteTextView.java
」我的項目。
代碼:
public class MultiAutoCompleteTextView extends AutoCompleteTextView {
private Tokenizer mTokenizer;
public MultiAutoCompleteTextView(Context context) {
this(context, null);
}
public MultiAutoCompleteTextView(Context context, AttributeSet attrs) {
this(context, attrs, com.android.internal.R.attr.autoCompleteTextViewStyle);
}
public MultiAutoCompleteTextView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
.
.
.
}
我還沒有研究任何解決方案來解決這個problem.How糾正 「com.android.internal.R.attr.autoCompleteTextViewStyle」 我自己ATTR?
謝謝你的任何建議。
嘗試按ctrl + 0? – Techboy 2010-08-15 09:26:42
不能直接在SDK中使用'MultiAutoCompleteTextView'而不聲明自己? – rciovati 2013-04-29 09:50:33