0
我調試這個功能:源未找到調試Android的日食
public int colorIntWithAlpha(int color){
String colorStr;
colorStr=Integer.toHexString(color);
char[] strChar=colorStr.toCharArray();
colorStr=String.valueOf(strChar,0,6);
colorStr+="FF";
return Integer.decode(colorStr);
}
而當它到達colorStr=Integer.toHexString(color);
我得到一個消息:
Class File Editor
Source not found
[在Eclipse中將Java Source附加到Android項目](http ://stackoverflow.com/questions/3182904/attaching-java-source-to-android-projects-in-eclipse) – Mogsdad