use of com.androidquery.callback.ImageOptions in project androidquery by androidquery.
the class ImageLoadingActivity method image_round.
public void image_round() {
String url = "http://www.androidquery.com/z/images/vikispot/android-w.png";
ImageOptions options = new ImageOptions();
options.round = 15;
options.fallback = R.drawable.image_missing;
aq.id(R.id.image).image(url, options);
}
use of com.androidquery.callback.ImageOptions in project androidquery by androidquery.
the class ImageLoadingAspectRatioActivity method aspectRatioAnchor.
public void aspectRatioAnchor() {
String imageUrl = "http://farm3.static.flickr.com/2199/2218403922_062bc3bcf2.jpg";
ImageOptions options = new ImageOptions();
options.ratio = AQuery.RATIO_PRESERVE;
options.anchor = AQuery.ANCHOR_DYNAMIC;
aq.id(R.id.image1).image(imageUrl, options);
aq.id(R.id.text1).text("Original Image");
options.ratio = 1;
options.anchor = 1;
aq.id(R.id.image2).image(imageUrl, options);
aq.id(R.id.text2).text("Anchor 1.0 (Top)");
options.ratio = 1;
options.anchor = -1;
aq.id(R.id.image3).image(imageUrl, options);
aq.id(R.id.text3).text("Anchor -1.0 (Bottom)");
options.ratio = 1;
options.anchor = AQuery.ANCHOR_DYNAMIC;
aq.id(R.id.image4).image(imageUrl, options);
aq.id(R.id.text4).text("AQuery.ANCHOR_DYNAMIC");
aq.id(R.id.text5).text("");
}
Aggregations