I'm currently writing an app in the Android Studio. Only my second app I'm writing natively. As I want to support API 16 until API 22 and want to have material design interfaces I've found out I need AppCompact to support Material Design < API 21 (or 20.. forgot) and above that I can just make a new styles.xml for API 21 and up.
However a few problems came up. First problem: it crashed on this
public class Example extends ActionBarActivity {
// changed it to:
public class Example extends Activity {
Now on my Nexus 6 everything is working fine. However my text is invisible for some reason since I made a new styles.xml with primary, primary dark & accent colors.
Secondly, since I had to remove the ActionBarActivity in the .java file, the actionbar is gone on devices below API 21. How can I re-add it? Or isn't that possible? Having a hard time finding out how it works since information on the internet is mostly outdated for implementing the latest stuff.
Many thanks in advance