i making a gallery aplication in android in which the image is in full screen. So it used below line
window.setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
Now this works fine , i mean the image is now full screen but problem arises when the image background is white as status bar icon color is white so its looks like there is no status bar .
To solve this i tries setting status bar color like this.
window.setStatusBarColor(Color.TRANSPARENT)
But this also not works . I have tried setting other values like.
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS)
But this also not works ! Can you please help me how can i make status bar color transparent
while setting the
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
Thanks in advance