title: Converting the entire listview items (children) to bitmap
body: <p>I have to create the bitmaps for entire listview items; currently I am following this approach:</p>
  
  <p><code>To capture the listview individual items I have the below code:</code></p>
  
  <pre><code>ListView listview = shoppingItemList;
          BaseAdapter adapter = (BaseAdapter) listview.getAdapter();
          int itemscount = adapter.getCount();
          int allitemsheight = 0;
          List&lt;Bitmap&gt; bmps = new ArrayList&lt;Bitmap&gt;();
          System.out.println("In getWholeListViewItemsToBitmap.......");
          for (int i = 0; i &lt; itemscount; i++) {
  
              View childView = adapter.getView(i, null, listview);            childView.setDrawingCacheEnabled(true);
              childView.measure(
                      MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED),
                      MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
              childView.layout(0, 0, childView.getMeasuredWidth(),
                      childView.getMeasuredHeight());
              // childView.setDrawingCacheEnabled(true);
              childView.buildDrawingCache(true);
              Bitmap b = Bitmap.createBitmap(childView.getDrawingCache());
              bmps.add(b);
              childView.setDrawingCacheEnabled(true);
              allitemsheight += childView.getMeasuredHeight();
  
          }
  </code></pre>
  
  <p>The problem I am facing is that:
  My application exits without logging any error after childView.measure...
  Can anyone please help me figuring out what exactly is the issue.</p>
  
  <p>Thanks,
  Android developer</p>