setProgressViewOffset(布尔,INT,INT)是未定义的类型SwipeRefreshLayout [英] setProgressViewOffset(boolean, int, int) is undefined for the type SwipeRefreshLayout
问题描述
运用支持修订21新SwipeRefreshLayout(或最新的今天,从SDK管理器)我得到它的工作,但我需要使用下移的看法
进口android.support.v4.widget.SwipeRefreshLayout;
....
mSwipeLayout =(SwipeRefreshLayout)findViewById(R.id.swipe);
mSwipeLayout.setProgressViewOffset(假的,100,150)
该方法setProgressViewOffset(布尔,INT,INT)是未定义
类型SwipeRefreshLayout。
块引用>如何解决这一问题?
解决方案Talklittle 是正确的。
这个答案固定我的问题。
我的Facebook SDK其中有比我工作的项目一个较旧的支持库。
T好像不同的项目使用的是2个独立的支持库和那里的校验和是不同的。
您必须重复此为Facebook SDK项目,并正在构建的应用程序都。
当我得到我做的这个错误是:
1 右键单击项目。
2 Android的工具 - >添加支持库
3 接受库的下载。
块引用>这确保了两件事情:
一个您从谷歌来源获取支持库的最新版本。
乙。您在所有的项目完全相同的库。
块引用>Using the new SwipeRefreshLayout from Support Revision 21 (or latest today, from sdk manager) I get it to work but I need to move down the view using
import android.support.v4.widget.SwipeRefreshLayout; .... mSwipeLayout = (SwipeRefreshLayout) findViewById(R.id.swipe); mSwipeLayout.setProgressViewOffset(false, 100, 150)
The method setProgressViewOffset(boolean, int, int) is undefined for the type SwipeRefreshLayout.
How to fix this?
解决方案Talklittle was right.
This answer fixed my problem.
I had facebook SDK which had an older support library than the project I was working on.
t seems like the different projects are using 2 separate support libraries and there for the checksum is different.
You must repeat this for both the Facebook SDK project and the app you are building.
what I do when I get this error is:
1. Right click the project.
2. Android Tools -> Add support library
3. Accept the downloading of the library.
this insures 2 things:
A. You get the newest version of the support library from the Google sources.
B. You have the EXACT same library in all your projects.
这篇关于setProgressViewOffset(布尔,INT,INT)是未定义的类型SwipeRefreshLayout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!