title: Android adapters getView() - is parent already measured?
body: <p>In my activity, i have a GridView and custom adapter inside onCreate():</p>
  
  <pre><code>    GridView vg = (GridView) findViewById(R.id.gridview);
      ArrayList&lt;CustomPart&gt; items = ...;
      vg.setAdapter(new TaskVariantsAdapter(this, items));
  </code></pre>
  
  <p>I need to know the actual width of column in GridView to make a special scaling for some images. I noticed that "parent" in getView() is already with non-zero column width - at least im able to get an integer from parent.getColumnWidth().</p>
  
  <pre><code>        // create a new ImageView for each item referenced by the Adapter
          public View getView(int position, View convertView, ViewGroup parent) {
             ....
             int width = ((GridView) parent).getColumnWidth();
             ....
          }
  </code></pre>
  
  <p>Can i be SURE that parent is already measured and columnWidth is correct? Im asking because (of course) activity has no width and height in onCreate(). I need to know what first adapter.getView() will be AFTER all layout measuring even if i attached adatapter to GridView inside activity.onCreate(). Can you please confirm that?</p>