Skip to content
Hosseini edited this page Apr 23, 2016 · 8 revisions

Welcome to the Vinci wiki!

Vinci android library for Image Caching and Image Loading and its created multiThreading and make use of Concurrency for speedup the process and this library are inspiration from bad practice usually programmer do ( save/Store images as byte array in SQLite DB )

regular example how to request for request/loading the image from the net image :

Vinci
    .base(context)
    .process()
    .load(uri)
    .view(imageView);

or you want to get bitmap from specific http url (images) :

       //for example in recyclerView
       String uri = items.get(i);

       Vinci
           .base(context)
           .process()
           .load(uri, 
                  new Request() {
                     @Override
                     public void onSuccess(Bitmap bitmap) {
                        viewHolder.Writer.setImageBitmap(bitmap);
                     }

                    @Override
                    public void onFailure(Throwable e) {
                         Log.e(e.getClass().getSimpleName(), e.getMessage());
                    }
           });