{"action":"created","issue":{"url":"https://api.github.com/repos/yanzhenjie/Sofia/issues/40","repository_url":"https://api.github.com/repos/yanzhenjie/Sofia","labels_url":"https://api.github.com/repos/yanzhenjie/Sofia/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/yanzhenjie/Sofia/issues/40/comments","events_url":"https://api.github.com/repos/yanzhenjie/Sofia/issues/40/events","html_url":"https://github.com/yanzhenjie/Sofia/issues/40","id":355914319,"node_id":"MDU6SXNzdWUzNTU5MTQzMTk=","number":40,"title":"如何设置fragment状态栏为白色？？？","user":{"login":"yangchong211","id":22100988,"node_id":"MDQ6VXNlcjIyMTAwOTg4","avatar_url":"https://avatars3.githubusercontent.com/u/22100988?v=4","gravatar_id":"","url":"https://api.github.com/users/yangchong211","html_url":"https://github.com/yangchong211","followers_url":"https://api.github.com/users/yangchong211/followers","following_url":"https://api.github.com/users/yangchong211/following{/other_user}","gists_url":"https://api.github.com/users/yangchong211/gists{/gist_id}","starred_url":"https://api.github.com/users/yangchong211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangchong211/subscriptions","organizations_url":"https://api.github.com/users/yangchong211/orgs","repos_url":"https://api.github.com/users/yangchong211/repos","events_url":"https://api.github.com/users/yangchong211/events{/privacy}","received_events_url":"https://api.github.com/users/yangchong211/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-31T09:50:57Z","updated_at":"2018-08-31T09:57:01Z","closed_at":"2018-08-31T09:57:01Z","author_association":"NONE","body":"如何设置fragment状态栏为白色？\r\n我跑了一下你的代码，如果设置fragment状态栏为白色，则无法看见状态栏中的时间，还有其它的状态。\r\n如否实现fragment中的白色状态栏和状态栏深色字体activity效果？"},"comment":{"url":"https://api.github.com/repos/yanzhenjie/Sofia/issues/comments/417615684","html_url":"https://github.com/yanzhenjie/Sofia/issues/40#issuecomment-417615684","issue_url":"https://api.github.com/repos/yanzhenjie/Sofia/issues/40","id":417615684,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzYxNTY4NA==","user":{"login":"yanzhenjie","id":13534988,"node_id":"MDQ6VXNlcjEzNTM0OTg4","avatar_url":"https://avatars2.githubusercontent.com/u/13534988?v=4","gravatar_id":"","url":"https://api.github.com/users/yanzhenjie","html_url":"https://github.com/yanzhenjie","followers_url":"https://api.github.com/users/yanzhenjie/followers","following_url":"https://api.github.com/users/yanzhenjie/following{/other_user}","gists_url":"https://api.github.com/users/yanzhenjie/gists{/gist_id}","starred_url":"https://api.github.com/users/yanzhenjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanzhenjie/subscriptions","organizations_url":"https://api.github.com/users/yanzhenjie/orgs","repos_url":"https://api.github.com/users/yanzhenjie/repos","events_url":"https://api.github.com/users/yanzhenjie/events{/privacy}","received_events_url":"https://api.github.com/users/yanzhenjie/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T09:57:01Z","updated_at":"2018-08-31T09:57:01Z","author_association":"OWNER","body":"可以，Demo没有问题，应该是理解和使用方法的问题。\r\n如果是单Activity多Fragment，由Fragment控制状态栏颜色的应用，有两种方案：\r\n1. 由Activity控制状态栏背景颜色和字体颜色，提供方法供Fragment调用即可。\r\n2. 首先设置Activity侵入状态栏，并设置状态栏为透明色，相当于隐藏Activity的状态栏，然后在BaseFragment中封装状态栏（使用StatusView），由Fragment控制自己的颜色即可；但是状态栏字体颜色还是需要通过Activity控制。"}}
{"actor":{"display_login":"yanzhenjie"}}