Android 隐藏Fragment

1.隐藏Fragment

  FragmentManager fManager = getFragmentManager();
fManager.beginTransaction()
.setCustomAnimations(android.R.animator.fade_in,
android.R.animator.fade_out)
.show(yourFragmentName).commit();

  

 fManager.beginTransaction().remove(mMangerFragment);

  

2.查看是否锁屏

KeyguardManager km = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE);
boolean locked = km.inKeyguardRestrictedInputMode();

上一篇:《计算机图形学》2.1.4 彩色CRT监视器


下一篇:Mysql对结果集的各种处理操作