Bonjour,
Y a t-il un moyen de fixer une imageView sous Eclipse lorsque l'on scroll dans un layout ?
Merci
Version imprimable
Bonjour,
Y a t-il un moyen de fixer une imageView sous Eclipse lorsque l'on scroll dans un layout ?
Merci
Peux-tu être plus précis ?
L'ImageView est à l'intérieur ou à l'extérieur du ScrollView ?
Un petit dessins ne ferait pas de mal ;)
J'ai un bandeau en haut avec un bouton et je voudrais qu'ils restent fixes quand on fait défiler le texte de manière à ce que le texte passe dessous
http://img.imagesia.com/fichiers/cd/...cdz1_small.png
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 <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content"> <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/bg" android:gravity="top" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin"> <ImageView android:id="@+id/imageView1" android:layout_width="fill_parent" android:layout_height="113dp" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:src="@drawable/top" /> <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/imageView1" android:bufferType="spannable" android:text="@string/texte_iut" android:textColor="#000000" android:paddingLeft="10dp" android:paddingRight="10dp" /> <Button android:id="@+id/retour" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignRight="@+id/imageView1" android:layout_alignTop="@+id/imageView1" android:layout_marginRight="15dp" android:layout_marginTop="15dp" android:text="Retour" android:onClick="click" /> </RelativeLayout> </ScrollView>
As-tu essayé de simplement sortir ces deux éléments (bandeau et bouton) de la ScrollView ?