1.隐藏Fragment
1
2
3
4
5
|
FragmentManager fManager = getFragmentManager();
fManager.beginTransaction()
.setCustomAnimations(android.R.animator.fade_in,
android.R.animator.fade_out)
.show(yourFragmentName).commit();
|
1
|
fManager.beginTransaction().remove(mMangerFragment);
|
2.查看是否锁屏
KeyguardManager km = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE);
boolean locked = km.inKeyguardRestrictedInputMode();
本文转自Work Hard Work Smart博客园博客,原文链接:http://www.cnblogs.com/linlf03/p/3822307.html,如需转载请自行联系原作者