码迷,mamicode.com
首页 > 移动开发 > 详细

Android 隐藏Fragment

时间:2014-07-07 08:15:02      阅读:284      评论:0      收藏:0      [点我收藏+]

标签:android   blog   java   cti   io   div   

 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   blog   java   cti   io   div   

原文地址:http://www.cnblogs.com/linlf03/p/3822307.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!