Monday, 15 December 2014

Supporting Material Design features in lower versions of Android

Importing Appcompat v-21 library in your project


First things first we need to import appcompat v-21 library into our project. To do this make sure your sdk is up to date (you can do this by going to the sdk manager). 




If incase you run into some problem then google it out, you will find solutions to every problem :)

Now once you have your sdk updated you need to import it into your project. 
To do this:
  • First import the appcompat in your work space. 
  • Then right click on your project ->select Properties-> select Android-> Click on Add and select appcompat which you just imported in your work space.

Okay, one possible error that you might encounter is that when you import appcompat project in your work space you will see a cross mark on its folder, to resolve the error:


  • Right click on your project ->select Properties-> select Android-> Select Android 5.0 as your Target Name.
                                   

Now once this is done your project will now support all Material Design features. Congratulations! :)

More interesting stuff coming soon.....


No comments:

Post a Comment