package com.shamilov.imagemore.example;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;

import com.shamilov.imagemore.ImageMore;

public class ImageMoreExampleActivity extends AppCompatActivity {

    ImageMore imageMore;

    Button add;
    int index;

    String[] images = new String[]{
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/45/running.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/39/baseball.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/43/tennis.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/41/basketball.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/38/football.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/44/golf.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/42/soccer.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/40/hockey.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/45/running.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/39/baseball.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/43/tennis.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/41/basketball.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/38/football.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/44/golf.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/42/soccer.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/45/running.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/39/baseball.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/43/tennis.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/41/basketball.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/38/football.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/44/golf.png",
            "https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/42/soccer.png"
    };

    String[] empty = new String[] {};

    int[] array = new int[]{1,2,7,3,9,3,7,7,3,1,3,9,5,6,7,4,2,4,7,3,5,12,56};

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_example);
        imageMore = (ImageMore) findViewById(R.id.imageMore);
        for (int i = 0; i < images.length; i++) {
            imageMore.addItem(images[i]);
        }
//        imageMore.setItems(Arrays.asList(images));
    }
}

@@ -355,2434 +355,8 @@
 x;%0A%0A
-    String%5B%5D images = new String%5B%5D%7B%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/45/running.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/39/baseball.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/43/tennis.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/41/basketball.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/38/football.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/44/golf.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/42/soccer.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/40/hockey.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/45/running.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/39/baseball.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/43/tennis.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/41/basketball.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/38/football.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/44/golf.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/42/soccer.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/45/running.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/39/baseball.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/43/tennis.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/41/basketball.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/38/football.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/44/golf.png%22,%0A            %22https://gosportnow.s3.amazonaws.com/uploads/staging/uploads/sport/source/42/soccer.png%22%0A    %7D;%0A%0A    String%5B%5D empty = new String%5B%5D %7B%7D;%0A%0A    int%5B%5D array = new int%5B%5D%7B1,2,7,3,9,3,7,7,3,1,3,9,5,6,7,4,2,4,7,3,5,12,56%7D;%0A%0A
     
@@ -527,32 +527,34 @@
 ample);%0A        
+//
 imageMore = (Ima
@@ -603,112 +603,10 @@
     
-for (int i = 0; i %3C images.length; i++) %7B%0A            imageMore.addItem(images%5Bi%5D);%0A        %7D%0A//        
+//
 imag

Update ImageMoreExampleActivity.java