GithubHelp home page GithubHelp logo

Comments (8)

maxkeppeler avatar maxkeppeler commented on August 26, 2024 1

There's no attr with "defaultValue" in the values.xml.
There's also no conflicting attrs, the sheet library's names start with "sheet...".
Indeed, I use the preference library, so the fragment manager can be taken out of the context in the PreferenceFragmentCompat.
I don't really know how to fix this for now - I will attempt to try some things out on the weekend.

from sheets.

nicemak avatar nicemak commented on August 26, 2024 1

Hi there!

i solved my issue by excluding preference library from your library, now its working wonderfully.

implementation ('com.maxkeppeler.sheets:core:2.0.0') { exclude group: 'androidx.preference', module: 'preference-ktx' } implementation ('com.maxkeppeler.sheets:input:2.0.0') { exclude group: 'androidx.preference', module: 'preference-ktx' }

from sheets.

nicemak avatar nicemak commented on August 26, 2024

@maxkeppeler sir any help?

from sheets.

maxkeppeler avatar maxkeppeler commented on August 26, 2024

I can't replicate this issue. So I guess an id is the same as another from your values file? Which would that be?

from sheets.

nicemak avatar nicemak commented on August 26, 2024

C:\Users\BI.IT-010.gradle\caches\transforms-2\files-2.1\2ccd1e7c841bb979159f85186e44dbc7\preference-1.1.1\res\values\values.xml:257:5-336:25: AAPT: error: duplicate value for resource 'attr/defaultValue' with config ''.

and

C:\Users\BI.IT-010.gradle\caches\transforms-2\files-2.1\2ccd1e7c841bb979159f85186e44dbc7\preference-1.1.1\res\values\values.xml:257:5-336:25: AAPT: error: resource previously defined here.

on clicking on these errors, this file opens.

    <!-- Whether the preference allows displaying divider on top -->
    <attr format="boolean" name="allowDividerAbove"/>

    <!-- Whether the preference allows displaying divider below it -->
    <attr format="boolean" name="allowDividerBelow"/>

    <!-- Whether to use single line for the preference title text. By default, preference title
         will be constrained to one line, so the default value of this attribute is true. -->
    <attr format="boolean" name="singleLineTitle"/>
    <attr name="android:singleLineTitle"/>

    <!-- Whether the space for the preference icon view will be reserved. If set to true, the
         preference will be offset as if it would have the icon and thus aligned with other
         preferences having icons. By default, preference icon view visibility will be set to
         GONE when there is no icon provided, so the default value of this attribute is false.
         -->
    <attr format="boolean" name="iconSpaceReserved"/>
    <attr name="android:iconSpaceReserved"/>

    <!-- Whether the Preference is visible. By default, this is set to true. -->
    <attr format="boolean" name="isPreferenceVisible"/>

    <!-- Whether the summary of this preference can be copied to the clipboard by long pressing
         on the preference. By default, this is set to false. -->
    <attr format="boolean" name="enableCopying"/>
</declare-styleable>

may be some other library is conflicting with your library resources.

from sheets.

nicemak avatar nicemak commented on August 26, 2024

may be this dependency causing issue,

preference: "androidx.preference:preference-ktx:1.1.1"

which is present in your core library, may be some other library is also using this.

from sheets.

maxkeppeler avatar maxkeppeler commented on August 26, 2024

Sorry, I can't replicate it and don't know how to continue with this issue you have.
If you know anything else, let me know.

from sheets.

maxkeppeler avatar maxkeppeler commented on August 26, 2024

Nice! However, I wonder how I can fix this on my end. I only need it in order to get the FragmentManager from the PreferenceContext. But it seems like the whole library is leaking?

from sheets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.