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?

  • Apparently there is no way to use the Support Design library without the AppCompat library, with this you need to either accept or abandon the Design library as well. - pavlofff
  • one
    NavigationView part of com.android.support:design , but it depends on com.android.support:support-v4 , and it depends on com.android.support:support-compat , the circle is closed. - Eugene Krivenja

0