Bonjour,
Je souhaiterai réaliser la disposition suivante :
Mais je n'y arrive pas ... la listView ne fait apparemment la taille que d'un seul élément. Et cela peut-etre à cause du fait que la webView peut prendre plus d'un écran.
Et voici mon code pour le layout.
Au final, ce que je voudrais, c'est que l'on puisse scroller sur la page entière, en ayant d'abord la webView, puis la listView (les deux dans le même scroll)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <brico.fr.ActionBarView android:id="@+id/actionbar" android:layout_width="fill_parent" android:layout_height="wrap_content"/> <ScrollView android:id="@+id/scrollView1" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:id="@+id/linearLayout2" android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_parent"> <WebView android:layout_height="wrap_content" android:id="@+id/webView_tutoriel" android:layout_width="fill_parent"/> <ListView android:background="@color/color_white" android:id="@+id/liste_produits_from_tuto" android:layout_width="fill_parent" android:cacheColorHint="#00000000" android:layout_height="fill_parent"/> </LinearLayout> </ScrollView> </LinearLayout>
J'ai besoin de quelques pistes.
Merci d'avance.![]()
Partager