appcompatactivity

Activity, AppCompatActivity, FragmentActivity, and ActionBarActivity: When to Use Which?

主宰稳场 提交于 2019-11-26 01:50:47
问题 I\'m coming from iOS where it\'s easy and you simply use a UIViewController. However, in Android things seem much more complicated, with certain UIComponents for specific API Levels. I\'m reading BigNerdRanch for Android (the book is roughly 2 years old) and they suggest I use Activity to host my FragmentActivities . However, I thought Activity was deprecated. So for API Level 22 (with a minimum support for API Level 15 or 16), what exactly should I use both to host the components, and for

What's the enhancement of AppCompatActivity over ActionBarActivity?

匆匆过客 提交于 2019-11-26 00:53:13
问题 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

What's the enhancement of AppCompatActivity over ActionBarActivity?

非 Y 不嫁゛ 提交于 2019-11-25 18:50:30
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? Any tips are appreciated. And thanks in advance. PS: what