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 trialDerek Markman
16,291 PointsMy app still works the same, but with a few differences, can someone explain these differences?
Well the first difference is in MainActivity.java (In the lessons, Ben's just says "extends Activity"):
public class MainActivity extends AppCompatActivity {
and the second difference is when we were editing the styles.xml file under the values directory. After I changed my parent to:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
It took off the action bar after I saved. I have a values-w820dp directory like Ben. But I don't have a values-v21 directory. Is this because I configured this differently? Or is it because I'm using Android Studio Version 1.4 Preview 3?
I remember him saying something about, if my action bar disappears after editing the styles.xml file inside of the values directory I configured something differently than him.
Thanks, Derek. :)
Derek Markman
16,291 PointsThanks for the clarification malkio.
malkio kusanagi
12,336 Pointsmalkio kusanagi
12,336 PointsYou can extend activity instead of AppCompatActivity if you want... you just need to import the appropriate namespace on top of the class file
As for the "values-v21" for newer versions of android if your IDE doesn't generate the folder automatically you can just create it manually and copy the contents from values-v19 or v20 or v18 and start editing from there.
Hope I was able to help, and don't forget to clean project and rebuild