Gridview does not comes up using custom class
<p>My gridview does not renders if I am using my derived GridClass, It does render when I add GridView object to myLayout but not when I add My Grid Object/ :( .Here's is the code</p>

<pre><code>        public class parentClass extends MyotherClass
        {
        Grid _gridV = null;

            public void createGridMenu(GridViewAdapter adp )
            {
              _gridV = (Grid) inflater.inflate(R.layout.Mygridmenu, null); 
          _gridV.setAdapter(adp);   
          MyLinearLayout.add(_gridV);   
            }
        class Grid extends GridView{

            Grid()
            {
            super(myContext);       
            }
                    @Override
            protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
            {
                super.onMeasure(widthMeasureSpec, heightMeasureSpec);

            }
         }
        //My other methods
        }
</code></pre>
