[Q] Using transparent sys bars without breaking compatibility with older versions

Search This thread

domiq123

Member
Dec 17, 2012
35
2
Hi,
I'm developing an app and to make it look better I would like to use transparent system bars on kitkat devices but when I set it up it forces me to move the minimum api level to kitkat (19) but that means my app is only gonna show up on kitkat devices, right? So I was searching around the web to see if it's possible to use it on kitkat while keeping the compatibility for ics or jb. I couldn't find anything so I'm posting here. :confused:


EDIT 1:
it is possible, pushbullet features that functionality while compatible with ics
 
Last edited:

sak-venom1997

Senior Member
Feb 4, 2013
928
415
Lucknow
if(Build.VERSION.SDK_INT >= 19)
{
// your kitkat specific code
}

also add SupressLint("NewApi")
annotation to your method

voilla no more compiler issues :cool: ;)

Sent from my GT-S5302 using Tapatalk 2