Bonjour à vous tous
j'ai besoin de votre aide pour résoudre un problème.
j'ai créé une application dont le graphique est le suivant:

Nom : radioButton.jpg
Affichages : 175
Taille : 16,3 Ko

voilà son code xml:

Code XML : 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        tools:context=".MainActivity">
 
    <RadioGroup
            android:layout_width="match_parent"
            android:layout_height="match_parent"
        >
 
        <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Groupe 1"
                android:textSize="20dp"
                android:gravity="center_horizontal"
                android:textStyle="bold"
                android:textColor="#000"
        />
 
        <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
        >
            <RadioButton
                    android:id="@+id/rbt_lundi"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="Lundi"
            />
            <RadioButton
                    android:id="@+id/rbt_mardi"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="mardi"
                    android:layout_marginLeft="100dp"
            />
 
        </LinearLayout>
 
        <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Groupe 2"
                android:textSize="20dp"
                android:gravity="center_horizontal"
                android:textStyle="bold"
                android:textColor="#000"
        />
 
        <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
        >
            <RadioButton
                    android:id="@+id/rbt_mercredi"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="mercredi"
            />
            <RadioButton
                    android:id="@+id/rbt_jeudi"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="jeudi"
                    android:layout_marginLeft="100dp"
            />
 
        </LinearLayout>
 
        <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Groupe 3"
                android:textSize="20dp"
                android:gravity="center_horizontal"
                android:textStyle="bold"
                android:textColor="#000"
        />
 
        <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
        >
            <RadioButton
                    android:id="@+id/rbt_vendredi"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="vendredi"
            />
            <RadioButton
                    android:id="@+id/rbt_samedi"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="samedi"
                    android:layout_marginLeft="100dp"
            />
 
        </LinearLayout>
 
    </RadioGroup>
 
</LinearLayout>

je ne comprends pas pourquoi malgré que mes radiobutton sont dans le même radiogroup j'ai plusieurs sélections à la fois
Merci