Bonjour, bonne fete a tous, svp je suis sur un projet android avec un temps assez limite. Je suis en test et je me rends compte que mes pages qui sont tous en mode RelativeLayout ne scrollent pas
Ex de layout
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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
 
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    tools:openDrawer="start">
    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true">
 
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
 
        <Switch
            android:textOn="Oui"
            android:textOff="Non"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/seekBar3"
            android:layout_alignBottom="@+id/textView40"
            android:layout_toRightOf="@+id/imageView4"
            android:layout_toEndOf="@+id/imageView4" />
 
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:srcCompat="@drawable/producteur"
            android:id="@+id/imageView5"
            android:layout_alignTop="@+id/imageView4"
            android:layout_alignRight="@+id/editText21"
            android:layout_alignEnd="@+id/editText21" />
 
        <TextView
            android:text="Observations:"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/textView41"
            android:textStyle="normal|bold"
            android:textAlignment="center"
            android:layout_alignBottom="@+id/editText21"
            android:layout_toLeftOf="@+id/editText21"
            android:layout_toStartOf="@+id/editText21"
            android:layout_marginRight="23dp"
            android:layout_marginEnd="23dp" />
 
        <EditText
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:inputType="textMultiLine"
            android:ems="10"
            android:id="@+id/editText21"
            android:layout_marginRight="115dp"
            android:layout_marginEnd="115dp"
            android:layout_below="@+id/spinner5"
            android:layout_alignParentRight="true"
            android:layout_alignParentEnd="true" />
 
        <Button
            android:text="ENREGISTRER"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/enregistrer_visite_fructification"
            android:textStyle="normal|bold"
            android:textAlignment="center"
            android:elevation="0dp"
            android:background="@color/colorPrimary"
            android:drawableLeft="@android:drawable/ic_menu_save"
            android:minWidth="151dp"
            android:layout_below="@+id/seekBar2"
            android:layout_alignRight="@+id/editText21"
            android:layout_alignEnd="@+id/editText21"
            android:layout_marginRight="43dp"
            android:layout_marginEnd="43dp"
            android:layout_marginTop="12dp" />
 
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:srcCompat="@drawable/producteur"
            android:layout_marginLeft="54dp"
            android:layout_marginStart="54dp"
            android:id="@+id/imageView4"
            android:layout_alignParentTop="true"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_marginTop="49dp" />
 
        <TextView
            android:text="Fructification Homogene Des Fruits:"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/textView39"
            android:textStyle="normal|bold"
            android:textAlignment="center"
            android:layout_alignBaseline="@+id/textView41"
            android:layout_alignBottom="@+id/textView41"
            android:layout_alignRight="@+id/textView37"
            android:layout_alignEnd="@+id/textView37" />
 
        <Switch
            android:textOn="Oui"
            android:textOff="Non"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/seekBar"
            android:layout_alignBottom="@+id/textView38"
            android:layout_alignLeft="@+id/seekBar3"
            android:layout_alignStart="@+id/seekBar3" />
 
        <TextView
            android:text="Densite De Nouaison:"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/textView37"
            android:textAlignment="center"
            android:textStyle="normal|bold"
            android:layout_marginTop="25dp"
            android:layout_below="@+id/button8"
            android:layout_alignRight="@+id/textView38"
            android:layout_alignEnd="@+id/textView38" />
 
        <TextView
            android:text="Maturite Rapide Et Homogene Des Fruits:"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/textView38"
            android:textStyle="normal|bold"
            android:layout_marginLeft="39dp"
            android:layout_marginStart="39dp"
            android:layout_alignBaseline="@+id/enregistrer_visite_fructification"
            android:layout_alignBottom="@+id/enregistrer_visite_fructification"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true" />
 
        <TextView
            android:text="Fruits Melange Aux Fleurs:"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/textView40"
            android:textStyle="normal|bold"
            android:layout_below="@+id/enregistrer_visite_fructification"
            android:layout_alignRight="@+id/textView38"
            android:layout_alignEnd="@+id/textView38"
            android:layout_marginTop="13dp" />
 
        <Button
            android:text="PHOTOGRAPHIER LES FRUITS"
            android:drawableLeft="@drawable/ic_menu_camera"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/button8"
            android:textStyle="normal|bold"
            android:textAlignment="center"
            android:layout_marginTop="18dp"
            android:layout_below="@+id/imageView4"
            android:layout_alignLeft="@+id/textView39"
            android:layout_alignStart="@+id/textView39"
            android:layout_marginLeft="11dp"
            android:layout_marginStart="11dp" />
 
        <Spinner
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/spinner5"
            android:layout_alignBottom="@+id/textView37"
            android:layout_alignRight="@+id/seekBar"
            android:layout_alignEnd="@+id/seekBar"
            android:entries="@array/attributfruit"/>
 
        <Switch
            android:textOn="Oui"
            android:textOff="Non"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/seekBar2"
            android:layout_alignBottom="@+id/textView39"
            android:layout_alignRight="@+id/spinner5"
            android:layout_alignEnd="@+id/spinner5" />
 
 
    </RelativeLayout>
    </ScrollView>
 
    <include
        layout="@layout/app_bar_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
 
    <android.support.design.widget.NavigationView
        android:id="@+id/nav_view"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:fitsSystemWindows="true"
        app:headerLayout="@layout/nav_header_main"
        app:menu="@menu/activity_main_drawer" />
</android.support.v4.widget.DrawerLayout>
Coordialement