@@ -0,0 +1,2018 @@
+package br.com.geconp.geconp.imgadapter;%0A%0Aimport android.content.Context;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.BaseAdapter;%0Aimport android.widget.GridView;%0Aimport android.widget.ImageView;%0Aimport android.widget.TextView;%0A%0Aimport br.com.geconp.geconp.R;%0A%0A/**%0A * Created by MARCIO on 09/01/15.%0A */%0Apublic class ImageAdapter extends BaseAdapter%7B%0A    private Context mContext; /*Contexto*/%0A    private int%5B%5D  mThumbIds;%0A    private String%5B%5D texto;%0A    public ImageAdapter(Context c, int%5B%5D  mThumbIds, String%5B%5D texto) %7B%0A        this.mContext = c;%0A        this.mThumbIds= mThumbIds;%0A        this.texto= texto;%0A    %7D%0A%0A    @Override%0A    public int getCount() %7B%0A        return mThumbIds.length;%0A    %7D%0A    /**%0A     * Retorna Imagem(Drawable) na posi%C3%A7%C3%A3o%0A     * @param position posi%C3%A7%C3%A3o da imagem na lista%0A     * @return Imagem na posi%C3%A7%C3%A3o indicada%0A     */%0A    @Override%0A    public Object getItem(int position) %7B%0A        return mContext.getResources().getDrawable(mThumbIds%5Bposition%5D);%0A    %7D%0A    /**%0A     * Retorna id da imagem na posi%C3%A7%C3%A3o%0A     * @param position posi%C3%A7%C3%A3o da imagem%0A     * @return id da imagem%0A     */%0A    @Override%0A    public long getItemId(int position) %7B%0A        return mThumbIds%5Bposition%5D;%0A    %7D%0A%0A    @Override%0A    public View getView(int position, View convertView, ViewGroup parent) %7B%0A        View grid;%0A        LayoutInflater inflater = (LayoutInflater) mContext%0A                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);%0A        if (convertView == null) %7B%0A            grid = new View(mContext);%0A            grid = inflater.inflate(R.layout.grid_single, null);%0A            TextView textView = (TextView) grid.findViewById(R.id.grid_text);%0A            ImageView imageView = (ImageView)grid.findViewById(R.id.grid_image);%0A            textView.setText(texto%5Bposition%5D);%0A            imageView.setImageResource(mThumbIds%5Bposition%5D);%0A        %7D else %7B%0A            grid = (View) convertView;%0A        %7D%0A        return grid;%0A%0A    %7D%0A%7D%0A

Create ImageAdapter.java