Giter VIP home page Giter VIP logo

togglebuttons's People

Contributors

rcketscientist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

togglebuttons's Issues

Compilation fail with latest material components

The Android resource compilation fail with the latest version of material components.
Version 'com.google.android.material:material:1.1.0-alpha07'

The output:

Android resource compilation failed
app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:8308: error: duplicate value for resource 'attr/checkedButton' with config ''.
app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:8308: error: resource previously defined here.
app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml: error: file failed to compile.

Crashing on 4.x devices using Vector Drawables

Using ToggleButton with an XML drawable on 4.X devices I'm unable to inflate the layout. I use the "android:button" element to specify the drawable, is there a compat attribute to use instead?


Caused by android.content.res.Resources$NotFoundException: File res/drawable/ic_all_24dp.xml from drawable resource ID #0x7f020138
       at android.content.res.Resources.loadDrawable(Resources.java:2206)
       at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
       at android.widget.CompoundButton.<init>(CompoundButton.java:74)

(BTW, love the simplicity of the library!)

Not compatible with GridLayout

Hi, thanks for your library !

I just have a problem building an app with GridLayout, that causes the following error :
.gradle\caches\transforms-1\files-1.1\gridlayout-1.0.0.aar\f8560c035b06149b18ef9b4c9a49e4a2\res\values\values.xml:74:5-190:25: AAPT: error: duplicate value for resource 'attr/orientation' with config ''

Compatibility issue

Error:Execution failed for task ':app:processDevDebugManifest'.

Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [com.anthonymandra:ToggleButtons:1.1.0] C:\Users\dev.android\build-cache\e4ed249ed1082d551294b9aaf166e3d2c15e2103\output\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.anthonymandra.widget" to force usage

Can you make a version that would reasonably work on min 16?

Crash when inflating ToggleGroup

Looks like RoundRectDrawable's constructor is package private (in androidx.cardview.widget.RoundRectDrawable) so we get illegal access from ToggleGroupApi21.

It is/was public in another branch (see diff):
https://android.googlesource.com/platform/frameworks/support/+/c42ba8c%5E!/

Error during inflate:

Caused by: java.lang.IllegalAccessError: Illegal class access: 'androidx.appcompat.widget.ToggleGroupApi21' attempting to access 'androidx.cardview.widget.RoundRectDrawable' (declaration of 'androidx.appcompat.widget.ToggleGroupApi21' appears in /data/app/com.myapp-UPWcvdqmrM2341e2333333==/base.apk!classes2.dex)
        at androidx.appcompat.widget.ToggleGroupApi21.initialize(ToggleGroupApi21.java:17)

Related libraries in use:

implementation 'androidx.core:core-ktx:1.0.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.fragment:fragment-ktx:1.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
implementation 'androidx.preference:preference:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2' 

Error: duplicate value for resource 'attr/orientation' with config ''

I am getting this error when converting my whole project to androidx:
\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1612: error: duplicate value for resource 'attr/orientation' with config ''.

It seems like the attribute name 'orientation' in your library is clashing with an attribute in the android library with the same name. If I got this correctly, this can be resolved by renaming this attribute inside your library in library/src/main/res/values/attrs.xml line 10:
<attr name="orientation" />

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.