开发者

"FLAG_ACTIVITY_NO_ANIMATION cannot be resolved or is not a field

I have an error in FLAG_ACTIVITY_NO_ANIMATION in Eclipse which says开发者_运维技巧 Cannot be resolved or is not a field.

Below are my coding:

Intent intent = new Intent(v.getContext(), newactivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
getContext().startActivity(intent);

Thank you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜