Précédent   Forum des professionnels en informatique > Java > Général Java > Java & Mobiles > Android
Android Forum d'entraide sur Android, la plateforme mobile de Google pour téléphones portables et Smartphones. Avant de poster -> FAQ Android
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 09/02/2012, 12h34   #1
Membre régulier
 
Inscription : janvier 2011
Messages : 283
Détails du profil
Informations forums :
Inscription : janvier 2011
Messages : 283
Points : 96
Points : 96
Par défaut scrollview bouton ; défiler bouton

Bonjour,

Je n'arrive pas à faire défiler mes boutons.
En faite je veux que mes boutons soient sur une ligne et que je puisse les faire défiler avec mon doigt.
Voici mon xml :
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
 
<LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
 
        android:padding="5dp">
 
        <ScrollView 
		android:layout_width="fill_parent" 
		android:layout_height="fill_parent">  
			<LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
 
        android:padding="5dp">
 
				<Button
				    android:id="@+id/button1"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
				<Button
				    android:id="@+id/button1"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
				<Button
				    android:id="@+id/button1"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
				<Button
				    android:id="@+id/button1"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
				<Button
				    android:id="@+id/button1"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
 
				<Button
				    android:id="@+id/button3"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
 
				<Button
				    android:id="@+id/button8"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
 
				<Button
				    android:id="@+id/button2"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
 
				<Button
				    android:id="@+id/button7"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
 
 
				<Button
				    android:id="@+id/button6"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
 
				<Button
				    android:id="@+id/button5"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
 
				<Button
				    android:id="@+id/button4"
				    android:layout_width="wrap_content"
				    android:layout_height="wrap_content"
				    android:text="Button" />
 
        </LinearLayout>
 
 
		</ScrollView>
 
 
		</LinearLayout>
xouzi est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 09/02/2012, 12h53   #2
Membre habitué
 
Avatar de eric-m
 
Homme Éric
Chef de projet MOA
Inscription : mars 2011
Messages : 51
Détails du profil
Informations personnelles :
Nom : Homme Éric
Localisation : France, Paris (Île de France)

Informations professionnelles :
Activité : Chef de projet MOA
Secteur : Transports

Informations forums :
Inscription : mars 2011
Messages : 51
Points : 123
Points : 123
Et en utilisant <HorizontalScrollView> à la place de <ScrollView>
eric-m est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 09/02/2012, 16h44   #3
Membre régulier
 
Inscription : janvier 2011
Messages : 283
Détails du profil
Informations forums :
Inscription : janvier 2011
Messages : 283
Points : 96
Points : 96
Sa marche. Merci
xouzi est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 02h05.


 
 
 
 
Partenaires

Hébergement Web