ImageButton in an HorizontalSrollView have a frame
<p>I have this Layout:</p>

<pre><code>&lt;HorizontalScrollView android:id="@+id/card_images_horizontalscroll"
   android:layout_height="wrap_content"
   android:layout_width="wrap_content"
   android:scrollbars="none"
   android:visibility="invisible"
   &gt;


    &lt;LinearLayout android:id="@+id/card_images_layout"
        android:orientation="horizontal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
    &gt;

     &lt;ImageButton 
      android:id="@+id/card_image"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" 
      android:background="@drawable/icona"
      android:
     /&gt;


    &lt;/LinearLayout&gt;




  &lt;/HorizontalScrollView&gt;
</code></pre>

<p>But I meet this issues: the image are enclose by a frame which I don't want, what's wrong?!</p>

<p>Like this:
<img src="http://i.stack.imgur.com/OP2em.png" alt="alt text"></p>

<p>Thanks so much!</p>

<p>I tried to change XML with this runtime code but I have the same issues:</p>

<pre><code>b = new ImageButton(this);
            b.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT));
            b.startAnimation(alpha_animation);
            b.setImageBitmap(myBitmap);
</code></pre>

<p>I tried also to follow the suggestion for change ImageButton in Button, but can I set at runtime the image source? </p>
