Scrollview tronqué en haut
Bonjour,
j'ai un petit problème avec scrollview. Il y a bien un scroll mais c'est tronqué en haut. En fait, la taille de mon écran est sensiblement la même avec
un rajout d'espace en bas et le haut de mon écran de mon layout n'est plus visible. Je ne suis pas certain d'avoir essayé mais si je mets plus de texte dans
mon layout, je ne verrai que le texte du bas avec un rajout d'espace vide et scroll en bas du layout. Comment faire, je croyais que le layout était facile....??
Je mets le code comme ça mais ma problématique est plus générale. J'ai d'autres fichiers xml, d'autres layout en scrollview où cela fait pareil.
Code:
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
| <?xml version="1.0" encoding="utf-8"?>
<ScrollView 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"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<LinearLayout
android:id="@+id/lglg"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="11px"
android:text="blah blah blahblah blah blah"
/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="11px"
android:text="blah blah blahblah blah blah"
/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" > <TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="12px"
android:text="blah blah blah"
/>
<Spinner
android:id="@+id/spinnerjour"
android:prompt="@string/jourr"
android:layout_width="wrap_content"
android:layout_height="39dp"
></Spinner></LinearLayout>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="11px"
android:text="blah blah blah"
/>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="12px"
android:text="blah blah blah"
/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Spinner
android:id="@+id/spinnerseconde"
android:prompt="@string/seconder"
android:layout_width="wrap_content"
android:layout_height="39dp"
></Spinner>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="blah blah blah"
/></LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Spinner
android:id="@+id/spinnermois"
android:prompt="@string/moisr"
android:layout_width="wrap_content"
android:layout_height="39dp"
></Spinner>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="blah blah blah"
/></LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Spinner
android:id="@+id/spinnerannee"
android:prompt="@string/anneer"
android:layout_width="wrap_content"
android:layout_height="39dp"
></Spinner>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="blah blah blah"
/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Spinner
android:id="@+id/spinnerheure"
android:prompt="@string/heurer"
android:layout_width="wrap_content"
android:layout_height="39dp"
></Spinner><TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="blah blah blah"
/>
</LinearLayout>
<Button
android:id="@+id/avant"
android:layout_width="wrap_content"
android:layout_height="38dp"
android:layout_gravity="center"
android:text="blah blah blah"
/>
</LinearLayout>
<Button
android:id="@+id/suivant9"
android:layout_width="66dp"
android:layout_height="34dp"
android:background="@drawable/df"
android:text="Suivant"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_below="@id/lglg"
/></RelativeLayout></LinearLayout></ScrollView> |