I must add, that I am having a ninepatch drawable as background, with added padding part. Does someone know if this padding superseedes the layout padding?
On 6 Mrz., 22:28, Rutton <rut...@web.de> wrote: > Hello there, > > I am working on a simple layout, that actually works. The only thing > is, that padding in a RelativeLayout does not work. Can someone have a > look on that and tell me what is wrong? Its the padding in the title- > RelativeLayout. > > R. > > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout android:id="@+id/root" > xmlns:android="http://schemas.android.com/apk/res/android" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:orientation="vertical"> > > <RelativeLayout android:id="@+id/title" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:paddingTop="6dp" > android:paddingBottom="6dp" > android:paddingLeft="6dp" > android:paddingRight="6dp" > android:layout_marginBottom="6dp"> > > <EditText android:id="@+id/searchtext" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="@string/word" > android:textSize="22sp" > android:layout_marginLeft="3dp" > android:layout_marginRight="3dp" > android:layout_alignParentLeft="true" > android:layout_toLeftOf="@+id/buttonA" > android:singleLine="true" > android:layout_centerVertical="true" > android:background="@drawable/form_new"> > </EditText> > > <Button android:id="@+id/buttonA" > android:layout_width="48dp" > android:layout_height="48dp" > android:layout_marginRight="3dp" > android:layout_toLeftOf="@+id/buttonB" > android:layout_centerVertical="true"> > </Button> > > <Button android:id="@+id/buttonB" > android:layout_width="48dp" > android:layout_height="48dp" > android:layout_marginRight="3dp" > android:layout_alignParentRight="true" > android:layout_centerVertical="true"> > </Button> > > </RelativeLayout> > <LinearLayout android:id="@+id/listroot" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:orientation="vertical"> > <ListView android:id="@id/android:list" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:fastScrollEnabled="true" > android:cacheColorHint="@android:color/transparent"> > > </ListView> > </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