oschina / android-app Goto Github PK
View Code? Open in Web Editor NEW这是开源**社区的开源 Android 客户端项目,本项目已经迁移到码云 gitee.com 此处不再更新!
Home Page: https://gitee.com/oschina/android-app
License: GNU General Public License v2.0
这是开源**社区的开源 Android 客户端项目,本项目已经迁移到码云 gitee.com 此处不再更新!
Home Page: https://gitee.com/oschina/android-app
License: GNU General Public License v2.0
下拉刷型不灵敏,经常需要先上拉一下,接着下拉才能刷新
Hello,
I have bought the original Samsung N7102. I am in Europe now but Google play and other applications dont Run on my phone. It is rooted already but I dont know what to modify...
Can You help?
在AppContext类中
/**
* 获取登录信息
* @return
*/
public User getLoginInfo() {
User lu = new User();
lu.setUid(StringUtils.toInt(getProperty("user.uid"), 0));
lu.setName(getProperty("user.name"));
lu.setFace(getProperty("user.face"));
/* ohter code */
return lu;
}
追踪getProperty()方法的定义,可以找到相关两个方法,如下:
public String get(String key) {
Properties props = get();
return (props != null) ? props.getProperty(key) : null;
}
public Properties get() {
FileInputStream fis = null;
Properties props = new Properties();
try {
File dirConf = mContext.getDir(APP_CONFIG, Context.MODE_PRIVATE);
fis = new FileInputStream(dirConf.getPath() + File.separator + APP_CONFIG);
props.load(fis);
}
/* other code */
return props;
}
不难发现,每次获取属性集中的某个属性,都要通过打开一次属性文件,读取props,即将所有属性都读出来。换句话说,如果要获取10个属性,这里就要打开10次属性文件,试问这样的IO效率是否他低了,有没有更好的解决办法?
慢慢的下拉刷新 按住不放 稍微移动移动就会卡住了
还有快速下拉也会卡主
我分析源码 下拉刷新有问题
望版主改正
缓慢向上划动视图,到达底部后,自动加载“更多”数据,此时会重复加载1-3次.
解决办法:
在
if(scrollEnd && lvDataState==UIHelper.LISTVIEW_DATA_MORE && scrollState == AbsListView.OnScrollListener.SCROLL_STATE_IDLE)
{
lvNews_foot_more.setText(R.string.load_ing);
lvNews_foot_progress.setVisibility(View.VISIBLE);
//当前pageIndex
int pageIndex = lvNewsSumData/AppContext.PAGE_SIZE;
loadLvNewsData(curNewsCatalog, pageIndex, lvNewsHandler, UIHelper.LISTVIEW_ACTION_SCROLL);
}
除加上 && scrollState == AbsListView.OnScrollListener.SCROLL_STATE_IDLE
解决了。
不要将IDE配置文件和特定于本地的配置文件提交到github,因为checkout到本地后,导入eclipse工程可能会出现问题。只需将源代码提交就好了,中间代码、日志文件、临时文件等不要提交
这个只是用户体验的不良的bug
如何产生:
手指点中一列,该列白色背景色变成浅蓝色后,不要松开手指,向左或向右移动,直到移出触摸屏,会发现,浅蓝色背景依然是浅蓝色,而没有恢复原来的白色背景色。
对比其他:
新浪微薄Android客户端就不会出现这种情况。
个人:
另外,测试发现等待“新闻正文”的时候,有时会有1-2s的延迟,这时候item的背景色依然是浅蓝色的。
ps:我认为手指松开item的背景色应该恢复原来的颜色啊?!对吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.