Bonjour, j'ai une page qui contient un viewPager qui accueil un fragment. dans ce fragment j'ai un très long texte. le fragment arrive bien dans le viewPager et se scroll mais pas jusqu'au bout, il manque 5 ou 6 phrases. auriez-vous une idée en fonction des éléments ci-dessous. par avance merci, car je tourne vraiment en rond

page avec le viewPager

Nom : Capture d’écran 2020-09-12 à 11.40.33.png
Affichages : 70
Taille : 33,6 Ko

page du fragment
Nom : Capture d’écran 2020-09-12 à 11.42.58.png
Affichages : 90
Taille : 223,2 Ko

code de mon activité
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
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    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:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity"
    tools:ignore="ExtraText">
 
 
    <androidx.viewpager2.widget.ViewPager2
        android:id="@+id/introSliderViewPager"
        android:layout_width="match_parent"
        android:layout_height="205dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="1.0"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/fl_wrapper" />
 
    <com.google.android.material.tabs.TabLayout
        android:id="@+id/tabLayoutDecouverte"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="2dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.0"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/indicatorContainer"
        app:tabIndicatorAnimationDuration="150"
        app:tabIndicatorColor="#FB0303"
        app:tabIndicatorFullWidth="false">
 
        <com.google.android.material.tabs.TabItem
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/description" />
 
        <com.google.android.material.tabs.TabItem
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/pratique" />
 
    </com.google.android.material.tabs.TabLayout>
 
    <LinearLayout
        android:id="@+id/indicatorContainer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:gravity="center"
        android:orientation="horizontal"
        app:layout_constraintTop_toBottomOf="@+id/introSliderViewPager" />
 
 
    <androidx.viewpager.widget.ViewPager
        android:id="@+id/viewPagerDecouverte"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginTop="5dp"
        android:layout_marginEnd="8dp"
        android:layout_marginRight="8dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/tabLayoutDecouverte" />
 
    <FrameLayout
        android:id="@+id/fl_wrapper"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        tools:ignore="MissingConstraints">
 
        <androidx.appcompat.widget.Toolbar
            android:id="@+id/toolbarDecouverte"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/colorNavBarre"
            android:minHeight="?attr/actionBarSize"
            android:theme="?attr/actionBarTheme" />
 
    </FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

code de mon fragment
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
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
    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:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".decouverte.FragmentPratique"
    android:fillViewport="true">
 
 
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        tools:context=".decouverte.FragmentPratique">
 
 
        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:justificationMode="inter_word"
            android:text="@string/texte">
 
        </TextView>
 
    </LinearLayout>
 
</ScrollView>