Android int replaced with android.R.integer in eclipse
Probably a simple one but I can't seem to find out where to stop this. Each time I type in
int
it gets instantly replaced with
integer
and the package
import android.R.integer;
is automatically included.
Anyway of stopping this from happening in Eclipse?
Thanks
Perhaps you may try this:
Preferences -> Java -> Code Style -> Organize Imports -> (check) Do not create imports for types starting with a lowercase letter
I'm not sure if it helps but lets give a try :)
The way I overcome this problem is by typing "int" and then hitting ESC. I hope you will get the hang of it fast.
Integer is class, int is a primitive type.
The Integer class wraps a value of the primitive type int in an object. An object of type Integer contains a single field whose type is int.
链接地址: http://www.djcxy.com/p/11456.html