Search in sources :

Example 6 with PostImageResize

use of io.swagger.client.model.PostImageResize in project android-client by GenesisVision.

the class MediaPostShortView method setImage.

private void setImage(MediaPost post) {
    String logoUrl = post.getImage().getResizes().get(post.getImage().getResizes().size() - 1).getLogoUrl();
    for (PostImageResize resize : post.getImage().getResizes()) {
        if (resize.getQuality().equals(ImageQuality.HIGH)) {
            logoUrl = resize.getLogoUrl();
        }
    }
    this.image.setImageURI(ImageUtils.getImageUri(logoUrl));
}
Also used : PostImageResize(io.swagger.client.model.PostImageResize)

Aggregations

PostImageResize (io.swagger.client.model.PostImageResize)6 SpannableString (android.text.SpannableString)4 PostImage (io.swagger.client.model.PostImage)4 Point (android.graphics.Point)2 TextPaint (android.text.TextPaint)2 Display (android.view.Display)2 WindowManager (android.view.WindowManager)2 StfalconImageViewer (com.stfalcon.imageviewer.StfalconImageViewer)2 ImageQuality (io.swagger.client.model.ImageQuality)2 ArrayList (java.util.ArrayList)2