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

Cant compile due to duplicate string values #15

Closed
seanyc4 opened this issue Dec 17, 2021 · 4 comments
Closed

Cant compile due to duplicate string values #15

seanyc4 opened this issue Dec 17, 2021 · 4 comments

Comments

@seanyc4
Copy link

seanyc4 commented Dec 17, 2021

App wont compile due to duplicate string values:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!--<declare-styleable name="BouncyNestedScrollView">
        <attr format="float" name="overscroll_animation_size"/>
        <attr format="float" name="fling_animation_size"/>

        <attr format="integer" name="damping_ratio">
            <enum name="DAMPING_RATIO_NO_BOUNCY" value="0"/>
            <enum name="DAMPING_RATIO_LOW_BOUNCY" value="1"/>
            <enum name="DAMPING_RATIO_MEDIUM_BOUNCY" value="2"/>
            <enum name="DAMPING_RATIO_HIGH_BOUNCY" value="3"/>
        </attr>
        <attr format="integer" name="stiffness">
            <enum name="STIFFNESS_VERY_LOW" value="0"/>
            <enum name="STIFFNESS_LOW" value="1"/>
            <enum name="STIFFNESS_MEDIUM" value="2"/>
            <enum name="STIFFNESS_HIGH" value="3"/>
        </attr>
    </declare-styleable>-->
    <declare-styleable name="BouncyRecyclerView">
        <attr format="float" name="recyclerview_overscroll_animation_size"/>
        <attr format="float" name="recyclerview_fling_animation_size"/>
        <attr format="boolean" name="allow_drag_reorder"/>
        <attr format="boolean" name="allow_item_swipe"/>

        <attr format="integer" name="recyclerview_damping_ratio">
            <enum name="DAMPING_RATIO_NO_BOUNCY" value="0"/>
            <enum name="DAMPING_RATIO_LOW_BOUNCY" value="1"/>
            <enum name="DAMPING_RATIO_MEDIUM_BOUNCY" value="2"/>
            <enum name="DAMPING_RATIO_HIGH_BOUNCY" value="3"/>
        </attr>
        <attr format="integer" name="recyclerview_stiffness">
            <enum name="STIFFNESS_VERY_LOW" value="0"/>
            <enum name="STIFFNESS_LOW" value="1"/>
            <enum name="STIFFNESS_MEDIUM" value="2"/>
            <enum name="STIFFNESS_HIGH" value="3"/>
        </attr>
    </declare-styleable>
</resources>

I had to manually comment out the nestedscrolling values to get it to compile, please fix this.

@valkriaine
Copy link
Owner

This should be fixed now, please update to the newest version of Bouncy and try again, thank you!

@seanyc4
Copy link
Author

seanyc4 commented May 9, 2022

There is still an error on the in the BouncyNestedScroolView. The variable "stiffness" clashes with the Material Design 1.6.0 variable. You will need to rename stiffness to something else like bouncy_stiffness. Causes compile time error and have to comment the code out to make it run

@valkriaine
Copy link
Owner

Thank you! I will update the library later today

@valkriaine valkriaine reopened this May 9, 2022
valkriaine added a commit that referenced this issue May 9, 2022
valkriaine added a commit that referenced this issue May 9, 2022
@valkriaine
Copy link
Owner

resolved in 2.3

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