Slight Clarification Needed on Page 54
Hello all!
I just bought the Beginning Android Programming with Android Studio, Fourth Edition yesterday, and so far I am enjoying the book! However, I knew something had to be wrong when I attempted to add a theme to an activity as the book mentions on page 54. Consistently when I attempted to edit the android:theme line and debug the program, I would get a fatal error stating that I must use a theme from the AppCompat library.
Being relatively new to Android programming I had no idea what was causing this error. I ended up creating a new project, but noticed the the Backwards Compatibility (AppCompat) option was selected by default when creating a new project. Once I created a new project without that option, the themes loaded without issue.
Do any of you know why deselecting this option worked? And in future revisions, would it be possible to add this as a side note before you have a reader try adding a theme?
|