J'ai une disposition relative. Ce qui a 2 boutons, côte à côte et il est aligné à droite.Comment puis-je ajouter un espacement dans RelativeLayout
Donc, ceci est mon fichier XML de mise en page. Ma question est qu'il n'y a pas d'espacement entre le bouton le plus à droite et la bordure droite du RelativeLayout et entre les 2 boutons. Comment puis-je ajouter cela? Je joue avec android: paddingRight, mais rien n'y fait.
Merci.
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingLeft="0dp" android:paddingRight="10dp">
<Button android:id="@+id/1button" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:paddingLeft="10dp" android:paddingRight="10dp"/>
<Button android:id="@+id/1button" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@id/1button"
android:paddingLeft="10dp" android:paddingRight="10dp"/>