开发者

"FLAG_ACTIVITY_NO_ANIMATION cannot be resolved or is not a field

开发者 https://www.devze.com 2023-03-25 06:21 出处:网络
I have an error in FLAG_ACTIVITY_NO_ANIMATION in Eclipse which says开发者_运维技巧 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

精彩评论

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