0

I'm an android newbie trying to use the ViewPager control which is part of the "Compatibility Package."

I first used the SDK manager to install the Extras Support Package.

I then went to https://github.com/commonsguy/cw-omnibus/tree/master/ViewPager/Fragments and got the ViewPager project and loaded it into Eclipse.

I then added a libs folder to the project and put "android-support-v4.jar" into that directory.

I did a Clean build and got all sorts of errors. The screenshot of my project is at http://dl.dropbox.com/u/39662979/viewpager.jpg.

What have I faild to do? thanks, Gary Blakely

4

3 回答 3

1

我已经看到您正在使用 SherlockActionBar 的一部分,但是必须将缺少的主题引用到一个未命中库。特别是您必须将 Jake Wharthon 的作品作为库项目导入,然后作为 android 库链接到您的项目。

于 2012-05-11T23:13:18.020 回答
0

Delete the Theme or add the theme to your styles.xml.

I do think you don't need the Theme if you only try to use ViewPager.

So delete it.

于 2012-05-11T23:09:00.347 回答
0

您可能正在寻找ActionBarSherlock - 常见问题解答。有一个视频可以帮助您开始使用图书馆

import android.R;PS 有的话别忘了删除

于 2012-05-27T22:44:52.563 回答