I am writing for api> = 21 and do not want to support older versions. AppCompat, as I understand it, exists for the material design to work on older versions of android. It turns out I should not use it.
If I use the Theme.Material theme, I should not inherit from AppCompatActivity, but simply an Activity.
But, for example, the CoordinatorLayout in its constructor causes a check.
ThemeUtils.checkAppCompatTheme(context); and if not, it throws an Exception. How to use this widget if you inherit from Theme.Material?
Even if inherited from Theme.Material, Android Studio uses other templates activity. If you generate a navigation drawer activity, then the activity and NavigationDrawerFragment will be generated. But why? After all, is there a NavigationView for this?
NavigationViewpart ofcom.android.support:design, but it depends oncom.android.support:support-v4, and it depends oncom.android.support:support-compat, the circle is closed. - Eugene Krivenja