Android BitmapRequest - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android BitmapRequest class.

This code example shows how to use the following methods:
            super(context, spiceManagerBinary, data);
        } 
 
        @Override 
        public BitmapRequest createRequest(DataUnderTest data, int imageIndex, int reqWidth, int reqHeight) {
            return new BitmapRequest(mockWebServer.getUrl("/" + data.getImageUrl()).toString(), reqWidth, reqHeight, cacheFile);
        } 
 
        // ---------------------------------------------------- 
        // ----- Block Test thread until drawable is refreshed. 
        // ---------------------------------------------------- 
 
        @Override 
        protected void loadBitmapAsynchronously(DataUnderTest octo, ImageView thumbImageView, String tempThumbnailImageFileName) {
            super.loadBitmapAsynchronously(octo, thumbImageView, tempThumbnailImageFileName);
            reentrantLock.lock();
            try { 
                loadBitmapHasBeenCalled = true;
                loadBitmapHasBeenCalledCondition.signal();
            } finally { 
4
CodeRank
This code example shows how to use the following methods:
 
 
    @Override 
    public BitmapRequest createRequest(HasImageModel schoolCaseModel, int imageIndex, int requestImageWidth, int requestImageHeight) { 
        File tempFile = new File(getContext().getCacheDir(), "THUMB_IMAGE_TEMP_" + schoolCaseModel.getName()); 
        return new BitmapRequest("https://secure.gravatar.com/avatar/" + schoolCaseModel.getGravatar_id(), requestImageWidth, 
                requestImageHeight, tempFile); 
    } 
 
 
    @Override 
    public SpiceListItemView<HasImageModel> createView(Context context, ViewGroup viewGroup) { 
 
        return new HasImageItemView(getContext()); 
    } 
} 
4
CodeRank
This code example shows how to use the following methods:
    @Override 
    public BitmapRequest createRequest(Status status, int imageIndex, 
                                       int requestImageWidth, int requestImageHeight) { 
        File tempFile = new File(getContext().getCacheDir(), 
                "THUMB_USER_TEMP_" + status.getUser().getId()); 
        return new BitmapRequest(status.getUser().getAvatar().getLarge(), 
                requestImageWidth, requestImageHeight, tempFile); 
    } 
 
    @Override 
    public SpiceListItemView<Status> createView(Context context, ViewGroup parent) { 
        return new StatusUpdateView(getContext()); 
    } 
} 
4
CodeRank
See Code Examples for Android BitmapRequest Methods: