Backward Compatibility (AppCompat) on Android Studio

When creating an application in Android Studio and choosing the name Activity, I have a button "Backward Compatibility (AppCompat)". And below he says: "If false, this base activity class will be Activity, not AppCompatActivity."

What is this backward compatibility?

+4
source share
2 answers

AppCompatActivityhas been introduced in the Android SDK since the release of support for appcommpat support for Android. .

AppCompatActivityis a direct child class of FragmentActivitysupport v4 and a direct parent class ActionBarActivity.

AppCompatActivity - , .

ActionBar API 7 , Theme.AppCompat .

appcompat v7, Action Bar. .

, v7 appcompat:

  • ActionBar - .
  • AppCompatActivity - , , Action bar.
  • AppCompatDialog - , AppCompat .
  • ShareActionProvider - (, ), .

, Android, /extras/android/support/v 7/appcompat/.

!

0

, API Android Activity , froyo Gingerbread , API , ActionBar . jellybean, 4.2.X ActionBar Android. Activity ActionBarActivity "Activity", "AppCompat". , ActionBar , API "AppCompat", , , ActionBar Differnce. API Activity

-1

Source: https://habr.com/ru/post/1658266/


All Articles