Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Android-Query(AQuery)を使って画像を操る(基本編) ref: http://qiita.com/TakamiChie/items/85b7b630f096d2280212
Bitmap thumbnail = $.getCachedImage(thumbnailUrl.toString());
$.id(R.id.image).image(url.toString(), false, false, 0, 0, thumbnail, 0);
File file = /* ファイルを保存するファイルパスを示すFileオブジェクト */
$.download(
url.toString(),
file,
new AjaxCallback<File>() {
@Override
public void callback(String url, File file,
AjaxStatus status) {
if (file != null) {
/* 読み込み成功時の処理 */
} else {
/* 読み込み失敗時の処理 */
}
}
});
$.id(R.id.image).image(url.toString());
Bitmap placeholder = $.getCachedImage(R.drawable.ic_unknown_image);
$.id(R.id.image).image(
url.toString(), false, false, 0, R.drawable.ic_unknown_image, placeholder, 0, 0.75f);
$.id(R.id.image).webImage(url.toString(), true, true, Color.WHITE);
$.id(R.id.image).progress(R.id.progress).image(url.toString());
$.id(R.id.image).image(url.toString(), false, false, 200, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment