sevar83 / indeterminate-checkbox Goto Github PK
View Code? Open in Web Editor NEWAndroid CheckBox and RadioButton with additional 3rd "indeterminate" state
License: Apache License 2.0
Android CheckBox and RadioButton with additional 3rd "indeterminate" state
License: Apache License 2.0
Caused by: java.lang.IllegalStateException: Target with the name "icon_null" cannot be found in the VectorDrawable to be animated.
at android.graphics.drawable.AnimatedVectorDrawable$AnimatedVectorDrawableState.prepareLocalAnimator(AnimatedVectorDrawable.java:848)
at android.graphics.drawable.AnimatedVectorDrawable$AnimatedVectorDrawableState.prepareLocalAnimators(AnimatedVectorDrawable.java:826)
at android.graphics.drawable.AnimatedVectorDrawable.ensureAnimatorSet(AnimatedVectorDrawable.java:939)
at android.graphics.drawable.AnimatedVectorDrawable.start(AnimatedVectorDrawable.java:923)
at android.graphics.drawable.AnimatedStateListDrawable$AnimatedVectorDrawableTransition.start(AnimatedStateListDrawable.java:342)
at android.graphics.drawable.AnimatedStateListDrawable.selectTransition(AnimatedStateListDrawable.java:229)
at android.graphics.drawable.AnimatedStateListDrawable.onStateChange(AnimatedStateListDrawable.java:149)
at android.graphics.drawable.Drawable.setState(Drawable.java:844)
at android.widget.CompoundButton.drawableStateChanged(CompoundButton.java:520)
at androidx.appcompat.widget.AppCompatCheckBox.drawableStateChanged(AppCompatCheckBox.java:224)
at android.view.View.refreshDrawableState(View.java:22426)
Diffrent checkbox sizes on diffrent API levels.
They are the same only on API 21 - API 23.
<com.buildware.widget.indeterm.IndeterminateCheckBox
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
android:buttonTint="@color/colorPrimary"
android:paddingLeft="8dp"
android:textColor="@color/checkbuttons_text_grey"
tools:text="Example" />
I have created a complex checkbox group from an API, its working fine.
But sometimes the checkbox (Exactly with the indeterminate state) is not triggering the setOnCheckedChangeListener.
Thank you.
There is a case, when we get NPE in onSaveInstanceState. This is calling
ss.indeterminate = this.getState().booleanValue();
Which for indeterminate state will try to evaluate booleanValue on null.
Stacktrace:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.coresuite.coresuitemobile, PID: 4145
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
at com.buildware.widget.indeterm.IndeterminateCheckBox.onSaveInstanceState(IndeterminateCheckBox.java:218)
at android.view.View.dispatchSaveInstanceState(View.java:13550)
at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865)
at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:2865)
at android.view.View.saveHierarchyState(View.java:13533)
at android.support.v4.app.FragmentManagerImpl.saveFragmentViewState(FragmentManager.java:1850)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1180)
at android.support.v4.app.FragmentManagerImpl.removeFragment(FragmentManager.java:1387)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:758)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1677)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:536)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Cannot resolve symbol 'colorControlIndeterminate'
Hi, would it possible to create a release with the current androidx migrated code?
Due to restrictions by F-Droid we (https://github.com/MarcusWolschon/osmeditor4android/) can only include dependencies that are published on one of the major binaries repos, so without a release I have to fork the project and publish it myself, which is a royal PITA and a waste of time.
Thank you for your consideration.
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.