Solution 1 :
For anyone curious: I ended up applying a style to the checkbox that overrides the colorAccent
attribute to @android:color/black
.
<style name="AppTheme.CheckBoxTheme" parent="@style/AppTheme">
<item name="colorAccent">@android:color/black</item>
</style>
Then add this to the checkbox:
android:theme="@style/AppTheme.CheckBoxTheme"
Problem :
Im currently trying to change the color of a checkbox shadow. However nothing seems to work.
I will just provide two images so you know what I mean.
I didn’t click the checkbox, but I holded it. I didn’t release “the click”. When I do this when the checkbox isnt checked everythings fine, but once its checked the shadows color changes to a different color. I want that color to be the same as the first one.
I tried changing various attributes:
<CheckBox
android_id="@+id/checkbox"
android_layout_width="match_parent"
android_layout_height="wrap_content"
android_text="Sobald wie möglich"
android_buttonTint="@android:color/black"
android_foregroundTint="@android:color/black"
android_shadowColor="@android:color/black"
android_outlineAmbientShadowColor="@android:color/black"
android_outlineSpotShadowColor="@android:color/black"
android_checked="true" />
Nothing happens. I suppose that it might not be the shadow from the checkbox, since it looks pretty much the same when clicking any other view. Does anyone know how to fix this?
Comments
Comment posted by stackoverflow.com/q/41496624/7666442
Have you checked this :
Comment posted by Gereon99
no, but sadly didnt help me.