How to display images in ListView instead of gallery layout
<p>Please see the below code:</p>

<pre><code>//here i call the gallery view
Gallery g = (Gallery) findViewById(R.id.gallery);
g.setAdapter(new ImageAdapter(this, json));

//image adapter class
public class ImageAdapter extends BaseAdapter {
    Bitmap bmp;
    private ImageView[] mImages;
    String[] itemimage;

    public ImageAdapter(Context context, JSONArray imageArrayJson) {
       this.mImages = new ImageView[imageArrayJson.length()];
       String qrimage;
       try {
           private Image View[] mImages; 
           for (int i = 0; i &lt; imageArrayJson.length(); i++) {
               JSONObject image = imageArrayJson.getJSONObject(i);
               qrimage = image.getString("itemimage");

               byte[] qrimageBytes = Base64.decode(qrimage.getBytes());

               bmp = BitmapFactory.decodeByteArray(qrimageBytes, 
                                                   0, qrimageBytes.length);
               mImages[i] = new ImageView(context);

               mImages[i].setImageBitmap(bmp);  
</code></pre>

<p>My xml view:</p>

<pre><code>&lt;Gallery xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/gallery"   
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" /&gt;
</code></pre>

<p>I can view the images from server database in a gallery view. However, I want to display all images in a ListView.</p>

<p>Please help me.I am working with prakash</p>
