Skip to content

Commit

Permalink
#16 [ui] to do 체크박스 selector 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
2zerozu committed Jul 8, 2022
1 parent bd80b49 commit 11ac57d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_blue_fill_check_box.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="#5E9EFF"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@android:color/white"
android:pathData="M19,3L5,3c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.11,0 2,-0.9 2,-2L21,5c0,-1.1 -0.89,-2 -2,-2zM10,17l-5,-5 1.41,-1.41L10,14.17l7.59,-7.59L19,8l-9,9z" />
</vector>
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_blue_line_check_box.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="#5E9EFF"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@android:color/white"
android:pathData="M19,5v14H5V5h14m0,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2V5c0,-1.1 -0.9,-2 -2,-2z" />
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/sel_home_to_do_check_box.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_blue_line_check_box" android:state_checked="false" />
<item android:drawable="@drawable/ic_blue_fill_check_box" android:state_checked="true" />
</selector>

0 comments on commit 11ac57d

Please sign in to comment.