You need to programmatically change the color of the status bar in Lollipop. I use the following code:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { Window window = getWindow(); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); window.setStatusBarColor(getResources().getColor(R.color.status_bar_color)); window.setNavigationBarColor(Color.BLUE); } The color changes, but the window size changes as well. As a result, the buttons located below crawl over the navigation bar. If you remove the flag FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS , the color does not change. How can I change the color of the status bar without changing the window size?