Menu
Who Do Is
  • Home
  • What
  • How
  • Is
  • Can
  • Are
  • Does
  • Do
  • Why
  • Who
  • Where
  • Which
  • Which
  • Should
  • Will
  • When
  • What’s
  • Did
Who Do Is

[ANSWERED] android – Changing the color of a checkbox shadow

Posted on November 14, 2022

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.

Normal behaviour
Unwanted behaviour

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.

READ  [ANSWERED] android - How i can implement bottomSheet in jetpack compose with three states?
Powered by Inline Related Posts

Recent Posts

  • How can I play with my cat without toys?
  • What is a bag pipe band called?
  • Are Honda Civics actually fast?
  • Are Yankee candles toxic?
  • How do I pair my Michael Kors smartwatch with my Android?

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuántas
  • ¿Cuánto
  • ¿Que
  • ¿Quién
  • 90” and 108” so you may have to round up to the nearest size.
  • and delete any Spotify folders from it. Once this is done
  • Android
  • Are
  • At
  • Bei
  • blink
  • C'est
  • Can
  • carbs
  • Comment
  • Did
  • Do
  • Does
  • During
  • For
  • Has
  • How
  • In
  • Is
  • Ist
  • Kann
  • Können
  • nouveau
  • On
  • or 108 inches.2020-08-03
  • Où
  • owning
  • Pourquoi
  • Puis-je
  • Quand
  • Quante
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • spiritual
  • tap the downward-facing arrow on the top left. A downward-facing arrow will appear underneath each song in the album; they'll turn green as the download completes.2020-07-28
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welcher
  • Welches
  • Welke
  • Wer
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Whose
  • Why
  • Wie
  • Will
  • Wo
  • Woher
  • you will receive two curtains each with the same measurements of width 66"" (168cm) x drop 54""(137cm).
  • you'll see a green downward-facing arrow next to each song.2021-02-26
©2023 Who Do Is | Powered by SuperbThemes & WordPress