Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialWilson Liu
5,877 PointssetNavigationMode deprecated in API 21
Hi, I am using android studio and API 21 to follow this course. I found some navigation is deprecated. Should I make a fix or ignore them? Thanks.
final ActionBar actionBar = getSupportActionBar(); //It shows deprecated!! actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
1 Answer
Joseph Ambrose
6,629 PointsThis is part of a larger issue this this app/class. Yes you can just continue and ignore, but I would recommend changing your support library in cradle to v4 19.1.+
This will mean changing theme to holo instead of appCompat and a few other imports but it will help you follow the class in the long run.
adsdev
15,583 Pointsadsdev
15,583 PointsJoseph Ambrose, can you give an example ?