I have the following layout file which uses the attached 9.png. It results 
in the attached screenshot where the red background from the 9.png does not 
extend all the way behind the button. If I remove the 
android:paddingBottom="1dp" attribute below, things work as I expect. Is 
this behavior expected (if so, why), or is this a bug?

Thanks,
Shri

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
    android:id="@+id/container"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#0000ff" >
    <LinearLayout
        android:id="@+id/view_with_drop_shadow"
        android:orientation="vertical"
        android:paddingBottom="1dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/red_background_with_drop_shadow" >
    
        <Button
            android:text="Hello"
            android:layout_width="wrap_content"
            android:layout_height="48dip" />
    
    </LinearLayout>
</LinearLayout>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


<<attachment: red_background_with_drop_shadow.9.png>>

<<attachment: problem.png>>

Reply via email to