title: Unable to refresh custom view in Layout
body: <p>In my <code>onCreateView</code> i have the following codes to populate custom view into my <code>LinearLayout</code> whereby <code>StageViewer</code> extends <code>View</code>.</p>
  
  <pre><code>layout = (LinearLayout)rootView.findViewById(R.id.lo1);     
  
  for (int i = 0 ; i &lt; 6 ; i ++)
  {
  
    StageViewer viewer = new StageViewer(i,callingActivity,this, 0, Global.STAGE_VIEW);
    layout.addView(viewer);
    stageList.add(viewer);        
  }
  </code></pre>
  
  <p>In my application the user have a option to set all view to default mode</p>
  
  <pre><code>public void resetToDefault()
  {
  
    for (int i = 0 ; i &lt; 6 ; i ++)
    {
  
      StageViewer viewer = new StageViewer(i,callingActivity,this, 0, Global.STAGE_VIEW);
      layout.addView(viewer);
      stageList.add(viewer);      
  
    }
  
  }
  </code></pre>
  
  <p>However upon reset the new view are NOT viewable (an empty layout is shown).</p>
  
  <p>I tried </p>
  
  <pre><code>viewer.invalidate();
  layout.refreshDrawableState();
  </code></pre>
  
  <p>Did I miss out something ?</p>