using Framelayout for making panel
<p>Hello i am using following xml to create some sort of Transparent panel . The problem i am facing is that the background image <code>ac</code> zoom up , i mean its height get increase , the other thing i would like to know how can i bring this frame in the middle and adjust its width . I have followed <a href="http://developer.android.com/resources/articles/layout-tricks-merge.html" rel="nofollow">this</a> example </p>

<pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;

    &lt;ImageView  
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 

        android:scaleType="center"
        android:src="@drawable/ac" /&gt;

    &lt;TextView
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:layout_marginBottom="20dip"
        android:layout_gravity="center_horizontal|bottom"

        android:padding="12dip"

        android:background="#AA000000"
        android:textColor="#ffffffff"

        android:text="test test test" /&gt;

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