java - Difference between appcompat_v7 and android-support-v7-appcompat? -


People say that they are identical, but they are used in different situations as stated in the < / P>

1-Adding Library Without Resources

  To add help library to your application project without resources: Make sure that you download the Android support library using SDK Manager is. Create a libs / directory in the root of your application project. Copy the JAR file from your Android SDK installation directory (e.g., & lt; sdk & gt; /extras/android/support/v4/android-support-v4.jar) to the project libs / directory of your application.  

Adding 2-libraries with resources

  To add an assistant library with resources (such as v7 Apk for action bar) your application In the project: Ensure you have downloaded an Android support library using SDK Manager. Create a Library Project and make sure JAR files are included in the project's construction path: File & gt; Select Import. Select the existing Android code in the workspace and next click Browse SDK in the installation directory and then browse in the Support Library folder. For example, if you are adding an EpicPet project, then & lt; Sdk & gt; Browse to Extra / Android / Support / v7 / Applemaps / Click Finish to import the project. For the V7 Epippate project, you should now see a new project called Android-Support-V7-Epchapple. In the new Library Project, expand the libs / folder, right-click each .jar file and click on Build Path & gt; Select. Add paths to create, for example, when creating viapacket project, add Android-support-v4.jar and Android-support-v7-appcompat.jar files to the build path. Right-click the Library Project folder and choose Build Path & gt; Configure Build Path In the Order and Export tab, you can check only JR files that you have added to the way of creation, so they are available for projects that are dependent on this library project. For example, you need to export Android-support-v4.jar and Android-support-v7-appcompat.jar files for the EpacaPet project. Uncheck Android dependencies Click OK to complete the changes. You now have a library project for your selected help library that you can use with one or more application projects.  

Should I use Epcomp7 (which is generated automatically from the project) and when should I use the Android-Support-v7-app compat?

In which case programmer needs to add library to resources in the project?

Please feed me with your experience

android-support -v7-appcompat.jar is a JAR file, which contains only compiled Java classes apkatm_v7 is a library project, in which the last jar file is not a real source code, and many Resources (layouts, pictures, & amp; c)

In the case of APP-COM-V7 , you must require to use the Library Project because it requires the required UI There are resources.

Other libraries (such as the V7 Media Rotor or V7 Palette) are not included in these resources, and therefore the JAR file can be used directly.

Note that the difference is mainly Eclipse (with which resources should be imported as libraries as a project, while others should only be kept in the Libs folder) with all Android Builder / Grade System Is controlled by and therefore is similar to both processes. This document is well explained.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -