facebookarchive / shimmer-android

An easy, flexible way to add a shimmering effect to any view in an Android app.
http://facebook.github.io/shimmer-android/
Other
5.31k stars 698 forks source link

While using in fragment background becomes transparent due to which views in activity are visible #104

Closed mhrjnamar closed 3 years ago

krishnendu25 commented 3 years ago
<RelativeLayout
    android:id="@+id/shimmerView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/background_base">
    <com.facebook.shimmer.ShimmerFrameLayout
        android:id="@+id/shimmer_view_container"
        android:layout_width="match_parent"
        android:duration="300"
        android:background="@color/transparent"
        android:layout_gravity="center_horizontal"
        android:layout_height="match_parent">
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@color/black">
            <ImageView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@drawable/shimmer_rides"/>
        </RelativeLayout>

    </com.facebook.shimmer.ShimmerFrameLayout>
</RelativeLayout>
krishnendu25 commented 3 years ago

public void show_ProgressDialog() { shimmer_view_container.startShimmer(); shimmerView.setVisibility(View.VISIBLE); }

public void hide_ProgressDialog() {
    shimmer_view_container.stopShimmer();
    shimmerView.setVisibility(View.GONE);
}
xiphirx commented 3 years ago

I do not know what this issue is describing, please provide more details.