Je souhaite avoir un motif en tant qu'arrière-plan dans ma RelativeLayout qui est répété.Répéter l'arrière-plan de couleur à partir de la liste des calques
<RelativeLayout
android:layout_width="0dp"
android:layout_height="600dp"
android:layout_weight=".20"
android:background="@drawable/timetable_background"
android:tileMode="repeat" >
Mais le tileMode ne fonctionne pas et affiche un seul cycle. Ceci est mon modèle:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:bottom="50dp" android:height="50dp">
<shape android:shape="rectangle" >
<solid android:color="@color/timetableEntryBackground1" />
</shape>
</item>
<item android:top="50dp" android:height="50dp">
<shape android:shape="rectangle" >
<solid android:color="@color/timetableEntryBackground2" />
</shape>
</item>
</layer-list>
Que dois-je changer, que les répétitions de fond?
Si vous aimez jeter un oeil à ma [réponse] (https://stackoverflow.com/a/36764196/5015207) à un poste plus ancien (Voir avec la forme répétée comme arrière-plan) – 0X0nosugar