1 pièce(s) jointe(s)
Comment faire pour apparaître une image un nombre de fois aléatoire
Bonjour,
J'ai une activité avec une imageview. Je veux faire apparaître l'image l'une à côté de l'autre n fois avec n un nombre aléatoire. Comment je faire cela s'il vous plaît?
C'est une chose comme ça
Pièce jointe 309460
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.dell.worldofkids.colors">
<LinearLayout
android:orientation="vertical"
android:id="@+id/current_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_alignParentStart="true">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Start"
android:id="@+id/button10"
android:layout_gravity="bottom" />
</LinearLayout>
</RelativeLayout> |
merci d'avance