0
J'ai les éléments suivants HorizontalScrollView
avec 2 vues personnalisées.Android HorizontalScrollView ne défile pas
Pour une raison quelconque, il ne défile pas
<com.name.CustomObjects.HorizontalLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:fillViewport="true"
android:scrollbars="horizontal" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<com.name.Views.AView
android:id="@+id/aView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<com.name.Views.BView
android:id="@+id/bView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</com.name.CustomObjects.HorizontalLayout>
Comment puis-je étirer le HorizontalLayout? – jkigel
Si je règle la largeur AView & BView à 300, je peux faire défiler entre eux – jkigel
Ensuite, je suppose que le contenu dans AView et BView n'est pas assez grand pour étirer le ScrollView et le faire défiler. – Ruben