Android添加书签(二)(9)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-26 22:12 点击:次
*/
/* package */void copyTo(BookmarkItem item) {
item.mTextView.setText(mTextView.getText());
item.mUrlText.setText(mUrlText.getText());
item.mImageView.setImageDrawable(mImageView.getDrawable());
}
/**
* Return the name assigned to this bookmark item.
*/
/* package */CharSequence getName() {
return mTextView.getText();
}
/**
* Return the TextView which holds the name of this bookmark item.
*/
/* package */TextView getNameTextView() {
return mTextView;
}
/**
* Set the favicon for this item.
*
* @param b
* The new bitmap for this item. If it is null, will use the
* default.
*/
/* package */void setFavicon(Bitmap b) {
if (b != null) {
mImageView.setImageBitmap(b);
} else {
mImageView.setImageResource(R.drawable.app_web_browser_sm);
}
}
/**
* Set the new name for the bookmark item.
*
* @param name
* The new name for the bookmark item.
*/
/* package */void setName(String name) {
mTextView.setText(name);
}
/**
* Set the new url for the bookmark item.
*
* @param url
* The new url for the bookmark item.
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>