Closed deshario closed 6 years ago
Hor to use ShimmerFrameLayout with scrollview properly ?
<com.facebook.shimmer.ShimmerFrameLayout android:id="@+id/shimmer_view" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" android:orientation="vertical" shimmer:duration="1500">
<ScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:fillViewport="true"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <include layout="@layout/pholder_campaign" /> <include layout="@layout/pholder_campaign" /> <include layout="@layout/pholder_campaign" /> </LinearLayout> </ScrollView> </com.facebook.shimmer.ShimmerFrameLayout>
But My View looks like this when i scroll :
You want to use the latest version of the library and you also want to wrap the individual items of your scroll view in the shimmer layout instead of the entire scroll view.
Hor to use ShimmerFrameLayout with scrollview properly ?
But My View looks like this when i scroll :