Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Reflection Image? #35

Open
Altohombre opened this issue Nov 28, 2022 · 1 comment
Open

Remove Reflection Image? #35

Altohombre opened this issue Nov 28, 2022 · 1 comment

Comments

@Altohombre
Copy link

I love the way this looks, but I have a use case where I need this without the reflection. I am not sure how to go about doing this. Thanks so much!

@jk-truong
Copy link

jk-truong commented Feb 15, 2023

I had a similar use case, you can remove the reflection by modifying
app:reflect_relativeDepth="0.0", app:reflect_gap="0dp", and changing android:layout_height="wrap_content"
in the item_view.xml or wherever you're using the view.

<com.jackandphantom.carouselrecyclerview.view.ReflectionViewContainer
        android:layout_width="120dp"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        app:reflect_gap="0dp"
        app:reflect_relativeDepth="0.5">

        <ImageView
            android:id="@+id/image"
            android:layout_width="120dp"
            android:layout_height="120dp"
            android:scaleType="fitXY"
            android:src="@drawable/hacker" />

</com.jackandphantom.carouselrecyclerview.view.ReflectionViewContainer>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants