1

ActionbarActivity is deprecated now so what is the alternative activity of ActionbarActivity for the Toolbar ??

My toolbar working fine, but I just want to know, there is any other way to do for toolbar ? I don't need solution for what to do for toolbar.

Nils
  • 647
  • 6
  • 16
  • https://github.com/googlesamples/android-DoneBar/blob/master/Application/src/main/java/com/example/android/donebar/DoneBarActivity.java – Ravi Vaghela Feb 22 '16 at 09:55

2 Answers2

5

Extend AppCompatActivity instead of ActionbarActivity... That's the new way after ActionbarActivity was deprecated.

Elvis Chweya
  • 1,532
  • 11
  • 19
  • 1
    I did not notice any. The name change was to avoid the impression that the name `ActionbarActivity` gave...when it actually did more than backport the `ActionBar` to Android versions not having it through the framework. – Elvis Chweya Feb 20 '16 at 11:53
  • Thanks @ElvisChweya I will search this and see you soon..!! – Nils Feb 20 '16 at 11:56
-1

ActionBarActivity is now deprecated. You may follow following site: Alternative of ActionbarActivity for ToolBar in android

Community
  • 1
  • 1
Mrunal
  • 348
  • 4
  • 15
  • thanks for your help but my question is not how to add toolbar? i have already done my toolbar but want to know what is activity to extends? – Nils Feb 20 '16 at 12:05
  • Ohh. You may extend AppCompatActivity. – Mrunal Feb 20 '16 at 12:12
  • 1
    You may check this site:http://stackoverflow.com/questions/29797172/whats-the-enhancement-of-appcompatactivity-over-actionbaractivity – Mrunal Feb 20 '16 at 12:16