![]() | 1 stewforani OP 搞定了 我给好心人介绍妹子,公司的设计妹子,贼漂亮。 |
2 stephonhu 2019-05-28 15:28:05 +08:00 现在我用的是 只适配 6.0 或者 flyme4.0 miui6.0 以上的,不知道还有没有什么方案 |
![]() | 3 stewforani OP @stephonhu 兄 dei,你在线上 app 用了吗? |
4 stephonhu 2019-05-28 16:10:09 +08:00 @stewforani 在用的 |
![]() | 5 stewforani OP @stephonhu 嘻嘻,兄 dei,可以发一份给我嘛我想参考下,我和你的差距 email: [email protected] |
6 bertsir 2019-05-28 16:22:10 +08:00 判断一下系统然后用官方的还是最稳的 |
7 bertsir 2019-05-28 16:25:48 +08:00 我之前用过一个和二楼的方案估计是一个 |
![]() | 8 wanttofly 2019-05-28 16:32:37 +08:00 |
![]() | 9 stewforani OP @bertsir 网上基本都是二楼的方案,可我总不大放心,因为创业嘛,也没时间去整这玩意,想吃白食搞一个完善的,嘿嘿,对了我只需适配 5.0 以上 |
![]() | 10 happyhou 2019-05-28 16:41:28 +08:00 |
![]() | 11 stewforani OP @wanttofly 谢谢帅哥,我瞅瞅 |
![]() | 12 happyhou 2019-05-28 16:42:03 +08:00 这个库,不会让你后悔 |
![]() | 13 stewforani OP @happyhou 谢谢帅哥,我只想整个单文件,加库放最后吧,实在解决不了了,再加库 |
![]() | 14 wanttofly 2019-05-28 16:50:06 +08:00 @stewforani 只是兼容了一部分手机,你可以看下对应的木有适配的手机做下修改,话说我是不是可以再完善下骗波 star?哈哈 |
![]() | 15 stewforani OP @wanttofly 给你来个吧,有兴趣可以回我 star,哈哈哈 |
![]() | 16 stewforani OP 想问下,有没有比这个更好的方案?加库暂不考虑 public static int StatusBarLightMode(Activity activity) { int result; if (MIUISetStatusBarLightMode(activity, true)) { //小米 result = 1; } else if (FlymeSetStatusBarLightMode(activity.getWindow(), true)) { //魅族 result = 2; } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { //6.0 以上 activity.getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); result = 3; } else { setStatusBarColor(activity, R.color.dark_level_6); result = 4; } return result; } |
17 llcfays 2019-05-28 17:23:11 +08:00 @stewforani 没有吧,就小米和魅族有改动。 |
![]() | 18 stewforani OP @llcfays 谢谢 |