Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,959 Members 43,693 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
domiq123
Old
(Last edited by domiq123; 19th February 2014 at 08:52 PM.) Reason: research
#1  
Junior Member - OP
Thanks Meter 2
Posts: 29
Join Date: Dec 2012
Unhappy [Q] Using transparent sys bars without breaking compatibility with older versions

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.


EDIT 1:
it is possible, pushbullet features that functionality while compatible with ics
 
sak-venom1997
Old
#2  
sak-venom1997's Avatar
Senior Member
Thanks Meter 402
Posts: 919
Join Date: Feb 2013
Location: Lucknow

 
DONATE TO ME
if(Build.VERSION.SDK_INT >= 19)
{
// your kitkat specific code
}

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

voilla no more compiler issues

Sent from my GT-S5302 using Tapatalk 2
Tags
kitkat, transparent system bars
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes