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

"Element sh.siava.rangesliderpreference.RangeSliderPreference is not allowed here" in Preferences Screen #2

Open
adrian-best opened this issue Jan 26, 2023 · 0 comments

Comments

@adrian-best
Copy link

adrian-best commented Jan 26, 2023

Hello,

Running on Android Studio Dolphin | 2021.3.1 Patch 1, *working in Kotlin and XML.

In Terminal, I ran "git submodule add https://github.com/siavash79/rangesliderpreference" and "git submodule update --init --recursive". I can see the submodule when write "git submodule status"

I then tried inputting the example code into my preferences screen, but I am getting this error:
"Element sh.siava.rangesliderpreference.RangeSliderPreference is not allowed here"

<SwitchPreferenceCompat
    app:key="notifications"
    app:title="Enable message notifications"/>



<Preference
    app:key="feedback"
    app:title="Send feedback"
    app:summary="Report technical issues or suggest new features"/>

<sh.siava.rangesliderpreference.RangeSliderPreference
    android:key="MY_KEY"
    android:title="Range Slider"
    android:summary="Set the default values for the percentages when adding a new RIR"
    app:tickInterval="5"
    app:valueCount="2"
    app:minVal="0"
    app:maxVal="100"
    app:defaultValue="20,50"
    />

image

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

1 participant