Skip to content

Commit

Permalink
Multiple choice background color when option get selected in m3. (goo…
Browse files Browse the repository at this point in the history
…gle#1435)

* Update theme/colors to Material 3.

* Multiple choice selected state primary color with 12% opacity.

Co-authored-by: Santosh Pingle <[email protected]>
  • Loading branch information
santosh-pingle and Santosh Pingle authored Jun 3, 2022
1 parent 992c463 commit 4bc0da0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions datacapture/src/main/res/color/box_filled_color.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:alpha="0.12" android:color="?attr/colorPrimary" />
</selector>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
>
<solid android:color="?attr/colorSecondary" />
<solid android:color="@color/box_filled_color" />
<corners android:radius="4dp" />
</shape>

0 comments on commit 4bc0da0

Please sign in to comment.