Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

ShimmerFrameLayout With Scrollview #62

Closed
deshario opened this issue Jul 28, 2018 · 1 comment
Closed

ShimmerFrameLayout With Scrollview #62

deshario opened this issue Jul 28, 2018 · 1 comment

Comments

@deshario
Copy link

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>

code

But My View looks like this when i scroll :
shimmer

@xiphirx
Copy link
Contributor

xiphirx commented Jul 30, 2018

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.

@xiphirx xiphirx closed this as completed Jul 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants