How to getBackground() in constructor of CursorAdapter while parent View is absent in it?
<p>I need to get <code>background</code> (<code>Drawable</code>) which is defined for my <code>layout</code> created to be an <code>item</code> of my <code>ListView</code>. The requirement is to do this in my <code>Adapter</code> constructor, but I lack parent <code>Viewgroup</code> to <code>inflate</code> it. Any other ways to do it?</p>

<pre><code>private class MAdapter extends CursorAdapter {

        private Drawable defaultDrawable;

        public MAdapter(Context context, Cursor c, boolean autoRequery) {
            super(context, c, autoRequery);
            this.defaultDrawable = // here I need to get Drawable which is defined as background for the view which is going to be used for `View` for the list row item
        }
</code></pre>
