Ich habe eine RelativeLayout
für eine Zeile, die in einem ListView
geht. Die Zeile sieht aus wie,unteren Rand oder Padding funktioniert nicht im relativen Layout in Xml auf Android
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/relativeLayout1"
android:layout_width="wrap_content"
android:layout_height="fill_parent">
<ImageView
android:id="@+id/placeDetailIcon_Img"
android:layout_height="50dp"
android:layout_width="50dp"
android:layout_alignParentLeft="true"
android:paddingBottom="20dp"
android:paddingTop="20dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"/>
</RelativeLayout>
Ich versuchte es auch mit margin:
<ImageView
android:layout_height="50dp"
android:layout_width="50dp"
android:id="@+id/placeDetailIcon_Img"
android:layout_alignParentLeft="true"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:layout_marginLeft="10dp"
android:layout_marginBottom="10dp">
Weder die Marge oder padding um die ImageView
gelten. Wie erstelle ich diese Art von Abstand?
RelativeLayout 'android: layout_height =" wrap_content "'? – zapl
Und entfernen Sie auch das 'RelativeLayout', wenn Ihre Listenelemente nur durch eine Ansicht dargestellt werden. –