How to can i control on the Bitmap size that will be draw on ImageButton?
<p>On my code i need to create some table that each column contain Bitmap and text - and i create this table dynamically. 
So i doing this by using this code:</p>

<pre><code>    for (int i = 0; i &lt; collection.size(); i++) 
    {               

      ObjectITem item = collection.get(i);

        LinearLayout linearLayout = new LinearLayout(this);
        linearLayout.setOrientation(LinearLayout.HORIZONTAL);

        TextView textView = new TextView(this);            
        textView.setText(item.getText());            

        linearLayout.addView(textView);            

        linearLayout.addView( (new ImageButton(this)).setImageBitmap(item.getBitmap());
        layout.addView(linearLayout, LayoutParams.WRAP_CONTENT);        

    }
</code></pre>

<p>this code is working good  -  but because the originaly images are not in same size - i see that the images that appear on the ImageButton are look not good. </p>

<ol>
<li>How can i make all the images on the ImageButton to look the same ? </li>
<li>Is there some better way to make the layout that i did here ? </li>
</ol>
