// 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.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import mklib.hosseini.com.vinci.Vinci;
package com.example.abbas.myapplication;





/**
 * Created by abbas on 8/24/15.
 */
public class FirstTab extends android.support.v4.app.Fragment {
    private static final String TAB_POSITION = "tab_position";
    private static final String TITLE = "TITLE";

    public static FirstTab newInstance(int tabPosition) {
        FirstTab fragment = new FirstTab();
        Bundle args = new Bundle();
        args.putInt(TAB_POSITION, tabPosition);
        fragment.setArguments(args);

        return fragment;
    }


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        final View v = inflater.inflate(
                R.layout.fragment_list_view, container, false);
        final RecyclerView recyclerView =
                (RecyclerView) v.findViewById(R.id.recyclerview);

//        String[] urls = {
//                "http://192.168.43.70/VinCi/Mona_Lisa1.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa2.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa3.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa4.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa5.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa6.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa7.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa8.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa9.jpg"
//        };
//        String[] urls2 = {
//                "http://192.168.43.70/VinCi/Mona_Lisa1.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa2.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa3.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa4.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa5.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa6.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa7.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa8.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa9.jpg"
//        };


// 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/FirstTab.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import mklib.hosseini.com.vinci.Vinci;

package com.example.abbas.myapplication;





/**
 * Created by abbas on 8/24/15.
 */
public class FirstTab extends android.support.v4.app.Fragment {
    private static final String TAB_POSITION = "tab_position";
    private static final String TITLE = "TITLE";

    public static FirstTab newInstance(int tabPosition) {
        FirstTab fragment = new FirstTab();
        Bundle args = new Bundle();
        args.putInt(TAB_POSITION, tabPosition);
        fragment.setArguments(args);

        return fragment;
    }


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        final View v = inflater.inflate(
                R.layout.fragment_list_view, container, false);
        final RecyclerView recyclerView =
                (RecyclerView) v.findViewById(R.id.recyclerview);

//        String[] urls = {
//                "http://192.168.43.70/VinCi/Mona_Lisa1.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa2.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa3.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa4.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa5.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa6.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa7.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa8.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa9.jpg"
//        };
//        String[] urls2 = {
//                "http://192.168.43.70/VinCi/Mona_Lisa1.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa2.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa3.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa4.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa5.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa6.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa7.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa8.jpg",
//                "http://192.168.43.70/VinCi/Mona_Lisa9.jpg"
//        };


        List<File> files = Vinci.base(getContext()).process().files().list();