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