Part of what 9patches do is define padding... if you define them on your own you'll overwrite the settings provided by the 9patch.
On Saturday, June 29, 2013 2:10:36 AM UTC+3, Shri wrote: > 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

