How to set height of Gallery view cell equals Gallery height?
<p>I have Gallery control with ImageView as cell View. I need to have ImageView size equals the Gallery height. How can I do that? I tried to set height like this:</p>

<pre><code>    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        FrameLayout retval = (FrameLayout) convertView;
        ImageView imageView = (ImageView) retval.findViewById(R.id.image);
        imageView.setLayoutParams(new FrameLayout.LayoutParams(parent.getHeight(), parent.getHeight()));
</code></pre>

<p>But first cell has height equals zero but next cells has right value.</p>
