-2

I am building app with the sdk levels (min 19- max 22), And i want to use material design in my app. Should i extend Activity or AppcompatActivity? What is the difference? I know AppcompatActivity is support library for backward compatability, Other than that is there any main difference between both?

Murali krishna
  • 823
  • 1
  • 8
  • 23

2 Answers2

0

Extending Activity is deprecated so you should use AppCompatActivity.

Dolan
  • 103
  • 1
  • 1
  • 9
0

Ya we can.Just add the library in the Gradle file and use it in the activity.

Sharath
  • 691
  • 8
  • 23
  • I have edited my question. can you please look in to it give some suggestions on it. – Murali krishna Dec 10 '15 at 05:22
  • Read this topic to understand the difference: http://stackoverflow.com/questions/31297246/activity-appcompatactivity-fragmentactivity-and-actionbaractivity-when-to-us – Sharath Dec 10 '15 at 10:17