Open monodeepdas1215 opened 7 years ago
Same trouble
same problem !!! how to fix it ?
I'm using ViewFlipper outside the ScrollView
<ViewFlipper
android:id="@+id/carouselBanners"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginTop="8dp"
android:autoStart="true"
android:flipInterval="1500"
android:inAnimation="@anim/flipin"
android:outAnimation="@anim/flipout">
<ImageView
android:id="@+id/imageView6"
android:layout_width="match_parent"
android:layout_height="200dp"
android:contentDescription="@string/bannersous"
app:srcCompat="@drawable/lenta_banner"/>
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="200dp"
app:srcCompat="@drawable/magnit_banner"/>
<ImageView
android:id="@+id/imageView5"
android:layout_width="match_parent"
android:layout_height="200dp"
android:contentDescription="@string/bannerbakalea"
app:srcCompat="@drawable/perekrestok_banner"/>
<ImageView
android:id="@+id/imageView4"
android:layout_width="match_parent"
android:layout_height="200dp"
android:contentDescription="@string/bannermagnit"
app:srcCompat="@drawable/pyaterochka_banner"/>
</ViewFlipper>
Try. Perhaps ViewFlipper likes ScrollView
Just insert a linearlayout in between will do.
ScrollView LinearLayout CarousellView
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent">`
When I had this no images was being displayed but when I removed the ScrollView outside of it images were displayedd fine then.