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();

Android 隐藏Fragment,布布扣,bubuko.com

Android 隐藏Fragment

上一篇:android post方式上传文件(模拟表单格式数据提交)


下一篇:Android 系统 广播大全(转)