rcketscientist / togglebuttons Goto Github PK
View Code? Open in Web Editor NEWAndroid toggle buttons that adhere to the Material Design documentation.
License: MIT License
Android toggle buttons that adhere to the Material Design documentation.
License: MIT License
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.
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!)
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 ''
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?
how to add vector drawable left or right with text
now just icon.
i want to add icon left or right with text.
how to do ?
thanks
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'
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" />
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.