How can I build this layout in Android?
<p>I found Fedor's code and implemented it into my project. The only difference is that my application does not have a list view.</p>

<p>I want the display to look like this image:</p>

<p><img src="http://i.stack.imgur.com/o5Dp8.jpg" alt="enter image description here"></p>

<p>How can I do that?</p>

<p>ImageAdapter.class</p>

<pre><code>public class ImageAdapter extends BaseAdapter {
private Activity activity;
// private Context context;
private ArrayList&lt;HashMap&lt;String, String&gt;&gt; data;
// private int mThumbIds = (R.drawable.stub);
private static LayoutInflater inflat = null;
public Image image;

public ImageAdapter(Activity ac, ArrayList&lt;HashMap&lt;String, String&gt;&gt; d) {
    this.activity = ac;
    this.data = d;
    inflat = (LayoutInflater) activity
            .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    image = new Image(activity);
}

public int getCount() {
    // TODO Auto-generated method stub
    return data.size();
}

public Object getItem(int arg0) {
    // TODO Auto-generated method stub
    return arg0;
}

public long getItemId(int arg0) {
    // TODO Auto-generated method stub
    return arg0;
}

public View getView(int position, View convertView, ViewGroup parent) {
    // TODO Auto-generated method stub
    View view = convertView;
    if (convertView == null) {
        view = inflat.inflate(R.layout.items, null);
    }

    ImageView images = (ImageView) view.findViewById(R.id.item);
    HashMap&lt;String, String&gt; imageMap = new HashMap&lt;String, String&gt;();
    imageMap = data.get(position);
    images.setImageResource(R.id.item);

    image.DisplayImage(imageMap.get("SOURCE"), images);
    return view;
}
</code></pre>

<p>MoiNhatAct.class</p>

<pre><code>public class MoiNhatAct extends Activity {

private static String url1 = "http://beta.photo.tamtay.vn/service/detail/getPhotoNews/4";

GridView g;
ImageAdapter adapter;

@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stubs
    super.onCreate(savedInstanceState);
    setContentView(R.layout.aaa);

    ArrayList&lt;HashMap&lt;String, String&gt;&gt; imageList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();

    // Creating JSON Parser instance
    JSONParser jParser = new JSONParser();

    // getting JSON string from URL
    JSONObject json = jParser.getJSONFromUrl(url1);

    JSONObject result;
    try {
        result = json.getJSONObject("result");
        String data_time = result.getString("Date time");
        String count = result.getString("Count");
        String page = result.getString("page");

        JSONArray ketqua = result.getJSONArray("ketqua");
        for (int i = 0; i &lt; ketqua.length(); i++) {
            JSONObject j = ketqua.getJSONObject(i);
            String id = j.getString("id");
            String name = j.getString("name");
            String thumb = j.getString("thumb");
            String source = j.getString("source");
            JSONArray sizeArray = j.getJSONArray("size");
            String size = sizeArray.getString(0);

            HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
            map.put("DATE_TIME", data_time);
            map.put("COUNT", count);
            map.put("PAGE", page);
            map.put("ID", id);
            map.put("NAME", name);
            map.put("SOURCE", source);
            map.put("SIZE", size);

            imageList.add(map);

        }

    } catch (JSONException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

    g = (GridView) findViewById(R.id.gridAvarta);
    adapter = new ImageAdapter(this, imageList);
    g.setAdapter(adapter);

    g.setOnItemClickListener(new OnItemClickListener() {
        public void onItemClick(AdapterView&lt;?&gt; parent, View v,
                int position, long id) {

            Intent i = new Intent(getApplicationContext(),
                    ImageFullAct.class);
            // passing array index
            i.putExtra("id", position);
            startActivity(i);
        }
    });

    Button clear = (Button) findViewById(R.id.clearCache);
    clear.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {
            // TODO Auto-generated method stub
            adapter.image.clearCache();
            adapter.notifyDataSetChanged();
        }
    });
}

public void onDestroy() {
    g.setAdapter(null);
    super.onDestroy();
}
</code></pre>

<p>}</p>

<p>This code i can using Gridview display images.
<img src="http://i.stack.imgur.com/8MloO.png" alt="enter image description here"></p>

<p>But i can custom it look like Layout below</p>

<p>And now i need a custom layout and display</p>
