@Override annotation.# Java - 爪哇娇娃
i*p
1 楼
Eclipse asks me to remove "@Override" for afterTextChanged(),
beforeTextChanged() and onTextChanged(). However, the same code in the
Eclipse working on another working space has no problem.
Does anybody know the reason?
public class myActivity extends Activity implements TextWatcher
{
@Override
public void onCreate(Bundle savedInstanceState) {
...
}
@Override
public void afterTextChanged(Editable msg) {
....
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int
after) {
.......
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int
count) {
.....
}
beforeTextChanged() and onTextChanged(). However, the same code in the
Eclipse working on another working space has no problem.
Does anybody know the reason?
public class myActivity extends Activity implements TextWatcher
{
@Override
public void onCreate(Bundle savedInstanceState) {
...
}
@Override
public void afterTextChanged(Editable msg) {
....
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int
after) {
.......
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int
count) {
.....
}