Android SDK Fragment Support

前端 未结 5 927
我在风中等你
我在风中等你 2020-12-21 05:20

Ok i\'m just starting to get into Android programming now, and I\'m following the android \"TabActivity\" tutorial: http://developer.android.com/reference/android/app/TabAct

相关标签:
5条回答
  • 2020-12-21 05:47

    Have you added the library to your build path? Right click on the jar in eclipse -> Build Path -> Add to Build Path.

    enter image description here

    0 讨论(0)
  • 2020-12-21 05:54

    It's probably because the following classes are not part of the standard Android API (or the support library), but only exist in the support demos sample code for demonstration purposes:

    FragmentStackSupport.CountingFragment
    LoaderCursorSupport.CursorLoaderListFragment
    LoaderCustomSupport.AppListFragment
    LoaderThrottleSupport.ThrottledLoaderListFragment
    

    You will need to add these classes to your own project in order to be able to use them. Here you can find the source files under the subsection 'Files'.

    • FragmentStackSupport
    • LoaderCursorSupport
    • LoaderCustomSupport
    • LoaderThrottleSupport
    0 讨论(0)
  • 2020-12-21 06:02

    On Eclipse IDE: Select your project and then right click on the project -> Android Tools -> Add Support Library.

    Required support library will be added on your project build path. You will found this library jar under Java Build Path -> Libraries tab -> Android Dependencies.

    Enjoy exploring!

    0 讨论(0)
  • 2020-12-21 06:04

    Instead of these missing classes you can create your own by subclassing Fragment class (or its subclasses like DialogFragment, ListFragment etc). More info is provided by Android here.

    0 讨论(0)
  • 2020-12-21 06:07

    Try adding by right clicking on the project and opening properties window

    enter image description here

    0 讨论(0)
提交回复
热议问题