For general use of ANDROID-SUPPORT-V7

Source: Internet
Author: User

The usual process for using V7 's support library (note is under Android Studio)

Download First

The main repository is the support library,

When used in the project, you need to add such a sentence in the app's Build.gradle file: (Each item has an open tab name that is the app's Build.gradle file, not the one with the tab name being the project name)

Add something like this (that is, a line marked by a yellow warning)

( Note: There is no need to add v7 and v4. jar files for both libraries in your Libs folder, as this will create a dependency conflict, and if you have built the project using either the V4 or the V7 dependent jar files, it is best to delete all the jars under Libs and then clean the project again, otherwise Dexdebu G will make a mistake )

Then the activity's theme is set to the following style or its subclass

Then change all the activity that inherits from the activity class to Actionbaractivity

Finally, when using V7 's control properties, use such a namespace and use the properties of this namespace instead of the properties of the Android namespace

Because the V7 library is self-v4, it is not necessary to import the V4 library again.

In addition the above import is AppCompat of this V7 library, the other library import may be similar, because there is no encounter, do not describe.

Because the UI project in sample from the beginning of the introduction of the V7 Actionbar, to yesterday I learned Humpty, had to surf the internet to check a lot of information, did a lot of work, and finally still behave in accordance with the description of docs walked again.

Bask in the shareprovider. After the implementation of the sample interface:

Above.

In addition, if the SDK Manager is unable to connect to Google, you can search for some VPN to use when the speed of the words will not take much time.

For general use of ANDROID-SUPPORT-V7

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.