How to introduce Android-support-v4/fragment

Source: Internet
Author: User

Today found need to use fragment, but can not directly import out, looked for a bit originally it here:

*android-sdk/extras/android/support/v4/android-support-v4.jar

I found it on the Internet. Import into the project, the Eclipse method is many, but the Android studio did not find, I tried, found ... Well, I'm a beginner.

Right-click on the app, then New->package, choose a location for yourself, I'll put it under "... \app\src\main\java" and then copy it in just a few android-support-v4.jar.

You can then import it into the project:

import android.support.v4.app.Fragment;import android.support.v4.app.FragmentActivity;

(Very simple things, personal notes bar)

Copyright NOTICE: This article is nomasp Couvant original article, without permission is prohibited reprint! Welcome to my blog: http://blog.csdn.net/nomasp

How to introduce Android-support-v4/fragment

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.