// Path: Vinci/src/main/java/mklib/hosseini/com/vinci/Classes/AsyncBitmap.java
// public interface AsyncBitmap<T> {
// 
//     void onFinish(T object);
// }
// 
// Path: Vinci/src/main/java/mklib/hosseini/com/vinci/Classes/Request.java
// public interface Request {
// 
//     void onSuccess(Bitmap bitmap);
// 
//     void onFailure(Throwable e);
// 
// }
// 
// Path: Vinci/src/main/java/mklib/hosseini/com/vinci/Vinci.java
// public class Vinci {
// 
//     protected static volatile Vinci Base_singleton;
//     protected final Context ctxt;
// 
//     Vinci(Context context) {
//         this.ctxt = context;
//     }
// 
//     /**
//     * create correct vinci object and make sure have one true instance
//     *
//     * @return Vinci object
//     **/
//     public static Vinci base(Context context) {
// 
//         if (Base_singleton == null) {
//             synchronized (Vinci.class) {
//                 if (Base_singleton == null) {
//                     Base_singleton = new Vinci(context);
//                 }
//             }
//         }
//         return Base_singleton;
//     }
// 
//     /**
//     * <p>
//     *   this method you can access it Builder pattern style
//     *   and you can access all emthods and api
//     * </p>
//     *
//     * @author      Abbas hosseini
//     * @version     1.0
//     * @since       2016-04-18
//     * @return      Loader object
//     *
//     **/
// 
//     public Loader process(){
//        return new Loader(this.ctxt);
//     }
// 
// 
// }


import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import java.io.File;
import java.util.List;
import mklib.hosseini.com.vinci.Classes.AsyncBitmap;
import mklib.hosseini.com.vinci.Classes.Request;
import mklib.hosseini.com.vinci.Vinci;
package com.example.abbas.myapplication;




/**
 * Created by abbas on 8/24/15.
 */
public class tab1 extends RecyclerView.Adapter<tab1.ViewHolder> implements Request{

    private List<File> mItems;
    protected Context context;

    public tab1(List<File> items){
        mItems= items;
    }

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup viewGroup,int i){
        View v = LayoutInflater.from(viewGroup.getContext())
                .inflate(R.layout.list_row_readitem_tabs1, viewGroup, false);
        context = viewGroup.getContext();
        return new ViewHolder(v);
    }

    @Override
    public void onBindViewHolder(final ViewHolder viewHolder, final int i) {

        final File uri = mItems.get(i);

        Log.e("file", String.valueOf(BitmapFactory.decodeFile(uri.getAbsolutePath()).getByteCount()));


//        viewHolder.Writer.post(new Runnable() {
//            @Override
//            public void run() {

// Path: Vinci/src/main/java/mklib/hosseini/com/vinci/Classes/AsyncBitmap.java
// public interface AsyncBitmap<T> {
// 
//     void onFinish(T object);
// }
// 
// Path: Vinci/src/main/java/mklib/hosseini/com/vinci/Classes/Request.java
// public interface Request {
// 
//     void onSuccess(Bitmap bitmap);
// 
//     void onFailure(Throwable e);
// 
// }
// 
// Path: Vinci/src/main/java/mklib/hosseini/com/vinci/Vinci.java
// public class Vinci {
// 
//     protected static volatile Vinci Base_singleton;
//     protected final Context ctxt;
// 
//     Vinci(Context context) {
//         this.ctxt = context;
//     }
// 
//     /**
//     * create correct vinci object and make sure have one true instance
//     *
//     * @return Vinci object
//     **/
//     public static Vinci base(Context context) {
// 
//         if (Base_singleton == null) {
//             synchronized (Vinci.class) {
//                 if (Base_singleton == null) {
//                     Base_singleton = new Vinci(context);
//                 }
//             }
//         }
//         return Base_singleton;
//     }
// 
//     /**
//     * <p>
//     *   this method you can access it Builder pattern style
//     *   and you can access all emthods and api
//     * </p>
//     *
//     * @author      Abbas hosseini
//     * @version     1.0
//     * @since       2016-04-18
//     * @return      Loader object
//     *
//     **/
// 
//     public Loader process(){
//        return new Loader(this.ctxt);
//     }
// 
// 
// }


// Path: app/src/main/java/com/example/abbas/myapplication/tab1.java
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import java.io.File;
import java.util.List;
import mklib.hosseini.com.vinci.Classes.AsyncBitmap;
import mklib.hosseini.com.vinci.Classes.Request;
import mklib.hosseini.com.vinci.Vinci;

package com.example.abbas.myapplication;




/**
 * Created by abbas on 8/24/15.
 */
public class tab1 extends RecyclerView.Adapter<tab1.ViewHolder> implements Request{

    private List<File> mItems;
    protected Context context;

    public tab1(List<File> items){
        mItems= items;
    }

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup viewGroup,int i){
        View v = LayoutInflater.from(viewGroup.getContext())
                .inflate(R.layout.list_row_readitem_tabs1, viewGroup, false);
        context = viewGroup.getContext();
        return new ViewHolder(v);
    }

    @Override
    public void onBindViewHolder(final ViewHolder viewHolder, final int i) {

        final File uri = mItems.get(i);

        Log.e("file", String.valueOf(BitmapFactory.decodeFile(uri.getAbsolutePath()).getByteCount()));


//        viewHolder.Writer.post(new Runnable() {
//            @Override
//            public void run() {

                Vinci