首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >com.viewpagerindicator android.view.view

com.viewpagerindicator android.view.view
EN

Stack Overflow用户
提问于 2014-10-02 07:59:55
回答 1查看 1K关注 0票数 1

我试图在一个项目中使用。http://viewpagerindicator.com/

我解压缩了,并在这个文件夹中启动了一个新项目。在文件UnderlinePageIndicator.java中,我在以下方面有一个错误:

代码语言:javascript
复制
import android.view.View;
...
public class UnderlinePageIndicator extends View implements PageIndicator { ... }

错误:无法将视图解析为类型。我在第1行也有一个错误(这是一个注释),它说: android.view.ViewGroup类型不能被解析。它是从必需的.class文件间接引用的。

错误日志:

代码语言:javascript
复制
Description Resource    Path    Location    Type
The project was not built since its build path is incomplete. Cannot find the class file for android.view.ViewGroup. Fix the build path then try building this project  JakeWharton-Android-ViewPagerIndicator-8cd549f      Unknown Java Problem

Description Resource    Path    Location    Type
The type android.view.ViewGroup cannot be resolved. It is indirectly referenced from required .class files  UnderlinePageIndicator.java /JakeWharton-Android-ViewPagerIndicator-8cd549f/library/src/com/viewpagerindicator  line 1  Java Problem

我花了好几个小时在这上面,我没有解决办法。任何帮助都是欢迎的。谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-10-02 08:35:59

  1. JakeWharton-Android-ViewPagerIndicator导入ur工作区,然后在project->properties->android->library(scroll_down)->Add button对话框中右键单击将打开,然后选择JakeWharton-Android-ViewPagerIndicator并单击apply/ok
  2. 然后按照这个链接"Adapter for circle page indicator in android“。我和CirclePageIndicator一起使用viewpager.It绝对会对你有帮助:)
票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26156571

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档