Bonjour.

Je voudrais tout simplement afficher une listview avec en dessous de celle-ci un textview.

J'ai donc

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
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="utf-8"?>
 
<LinearLayout
		xmlns:android="http://schemas.android.com/apk/res/android"
		android:layout_width="fill_parent"
		android:layout_height="fill_parent"
		>
 
	<LinearLayout
		android:layout_width="fill_parent"
		android:layout_height="fill_parent"
		>	
 
		<ListView
			android:id="@id/android:list"
			android:layout_width="fill_parent"
			android:layout_height="wrap_content"
			android:divider="@drawable/separator_gradient"
			android:dividerHeight="1px"
			>
		</ListView>
 
	</LinearLayout>
 
	<LinearLayout
		android:layout_width="fill_parent"
		android:layout_height="fill_parent"
		>
 
		<TextView
			android:id="@+id/tv"
			android:text="Artistes"
			android:layout_width="fill_parent"
			android:layout_height="wrap_content"
			android:background="#7A8FAA"
			android:textAppearance="?android:attr/textAppearanceLarge"
			android:textColor="#FFFFFF"
			android:paddingLeft="15dip"
			>
		</TextView>
 
	</LinearLayout>
 
 
</LinearLayout>
Mais ça ne marche pas. J'ai déjà essayé plein de combinaison avec les fill_parent et wrap_content mais aucun changement. La listview s'affiche sur tout l'écran et la textview n'apparaît pas.