{"id":875,"date":"2016-08-01T00:07:40","date_gmt":"2016-08-01T00:07:40","guid":{"rendered":"http:\/\/blog.silverterra.net\/?p=875"},"modified":"2016-08-01T00:08:56","modified_gmt":"2016-08-01T00:08:56","slug":"change-the-status-bar-color","status":"publish","type":"post","link":"https:\/\/blog.silverterra.net\/?p=875","title":{"rendered":"change the status bar color"},"content":{"rendered":"<blockquote><p>Goal: fit the full screen coloring to our application<\/p><\/blockquote>\n<p>Sometimes we need to change the status bar color to create a harmony on the whole screen.<br \/>\nPut this into the main activity:<\/p>\n<pre data-enlighter-language=\"java\" class=\"EnlighterJSRAW\">\r\n@Override\r\nprotected void onCreate(Bundle savedInstanceState) {\r\n  super.onCreate(savedInstanceState);\r\n  ...\r\n  \/\/ change the status bar color\r\n  getWindow().setStatusBarColor(this.getResources().getColor(R.color.custom_statusbar_color));\r\n  ...\r\n}\r\n<\/pre>\n<p>Simple&#8230; and no more blue top on the screen&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Goal: fit the full screen coloring to our application Sometimes we need to change the status bar color to create a harmony on the whole screen. Put this into the main activity: Simple&#8230; and no more blue top on the screen&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-875","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=875"}],"version-history":[{"count":3,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/875\/revisions"}],"predecessor-version":[{"id":878,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=\/wp\/v2\/posts\/875\/revisions\/878"}],"wp:attachment":[{"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.silverterra.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}