Android添加书签(二)(22)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-26 22:12 点击:次
} else {
b.setFavicon(null);
}
}
private class ChangeObserver extends ContentObserver {
public ChangeObserver() {
super(new Handler());
}
@Override
public boolean deliverSelfNotifications() {
return true;
}
@Override
public void onChange(boolean selfChange) {
refreshList();
}
}
private class MyDataSetObserver extends DataSetObserver {
@Override
public void onChanged() {
mDataValid = true;
notifyDataSetChanged();
}
@Override
public void onInvalidated() {
mDataValid = false;
notifyDataSetInvalidated();
}
}
// returns new position
public int moveItemUp(int position) {
if (position > 0) {
Bundle rowOnTop = getRow(position - 1, false);
Bundle rowUnder = getRow(position, false);
int upId = rowOnTop.getInt("id");
rowOnTop.putInt("id", rowUnder.getInt("id"));
rowUnder.putInt("id", upId);
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>