android.support.v7.app.AppCompatActivity
was added into the latest v7 support library as a new feature yesterday.
It is said that ActionBarActivity
has been deprecated in favor of the new AppCompatActivity
and that AppCompatActivity
is base class for activities that use the support library action bar features. So, what are new features of AppCompatActivity
over ActionBarActivity
? What enhancements do AppCompatActivity
have over ActionBarActivity
? And what are advantages of AppCompatActivity
? Could somebody supply a few samples?
PS: what surprised me most is that AppCompatActivity
which is extended from android.support.v4.app.FragmentActivity
is the direct parent class of ActionBarActivity
! I mean actually now that ActionBarActivity
can do anything that AppCompatActivity
can do, why did Android pushed out the latter?
Meanwhile, I saw a blog post that states: "It's not a rename from ActionBarActivity
to AppCompatActivity
, the internal logic of AppCompat
is available via AppCompatDelegate
", so what's the "internal logic" of AppCompat
? What can AppCompatDelegate
do? Could somebody post some code about this?