Bonjour à tous,

n'étant pas sur que le titre soit assez explicite (toutes mes excuses), voici mon probleme :

- 1 LinearLayout contenant 3 textviews tels que:
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
<LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content" 
            android:weightsum="3">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="trucmuche1" />
             
             <View
                  android:layout_width="0.5dp"
                  android:layout_height="???"
                  android:background="@android:color/darker_gray"
               />            

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="Truc2" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="Truc3" />
        </LinearLayout>
- Je cherche à mettre des traits séparateurs entre chaque TextViews par le biais d'une View (en bleu dans l'extrait de code)

Soucis :
- J'aimerais que le trait fasse toute la hauteur du LinearLayout mais si je mets :

android:layout_height="match_parent"

Le Layout prend toute la hauteur de l'ecran.

Comment faire en sorte que le trait séparateur occupe toute la hauteur du layout mais SANS en modifier la hauteur (en wrap_content pour rappel)?

un Grand merci d'avance pour vos reponses