how to print all names before scrolling in custom listview in android
<p>in my application i am fetching all the images and names from mysql server database to the android mobile. if the emulator screen is hvga only 5  images and names are getting displayed.in logcat also only 5 names are getting print.when i scroll the screen how many names i can see on the screen only that much names are getting print .instead of that all the names has to get print before scrolling</p>

<pre><code>         public class VegdishesListview extends BaseAdapter {
  String qrimage;
  Bitmap bmp, resizedbitmap;
  Bitmap[] bmps;
  Activity activity = null;
  private LayoutInflater inflater;

  private ImageView[] mImages;
  String[] itemimage;
  TextView[] tv;
  String itemname,price,desc;
  String[] itemnames;
  String[] prices;
  String[] descs;
  HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();

  public VegdishesListview(Context context, JSONArray imageArrayJson) {
    //inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    //  imageLoader=new ImageLoader(activity);
    inflater=LayoutInflater.from(context);
    this.mImages = new ImageView[imageArrayJson.length()];
    this.bmps = new Bitmap[imageArrayJson.length()];
    this.itemnames = new String[imageArrayJson.length()];
    this.prices=new String[imageArrayJson.length()];
    this.descs=new String[imageArrayJson.length()];
    try {

      for (int i = 0; i &lt; imageArrayJson.length(); i++) {
        JSONObject image = imageArrayJson.getJSONObject(i);
        qrimage = image.getString("itemimage");
        itemname = image.getString("itemname");
        price=image.getString("price");
        desc=image.getString("itemdesc");

        itemnames[i] = itemname;
        prices[i]=price;
       descs[i]=desc;


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

        bmp = BitmapFactory.decodeByteArray(qrimageBytes, 0,
                                            qrimageBytes.length);
        int width = 100;
        int height = 100;
        resizedbitmap = Bitmap.createScaledBitmap(bmp, width, height,
                                                  true);
        bmps[i] = bmp;

        mImages[i] = new ImageView(context);
        mImages[i].setImageBitmap(resizedbitmap);

        mImages[i].setScaleType(ImageView.ScaleType.FIT_START);


        // tv[i].setText(itemname);
      }
      System.out.println(map);

    } catch (Exception e) {
      // TODO: handle exception
    }
  }

  public int getCount() {
    return mImages.length;
  }

  public Object getItem(int position) {
    return position;
  }

  public long getItemId(int position) {
    return position;
  }



  public View getView(final int position, View convertView, ViewGroup parent) {


    View vi=convertView;

    vi = inflater.inflate(R.layout.vegdisheslistview, null);


    TextView text=(TextView)vi.findViewById(R.id.vegdishestext);
    ImageView image=(ImageView)vi.findViewById(R.id.vegdishesimage);
    TextView text1=(TextView)vi.findViewById(R.id.vegdishesprice);
    TextView text2=(TextView)vi.findViewById(R.id.vegdishesdesc);
    image.setImageBitmap(bmps[position]);
    text.setText(itemnames[position]);
    text1.setText(prices[position]);
    text2.setText(descs[position]);
    System.out.println(itemnames[position]);

    return vi;


  }
</code></pre>

<p>this is my custom listview xml layout.can u please help me to change my code as per my need</p>
