Skip to content

Commit

Permalink
rStrokeColor支持十六进制颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
KuangGang committed Dec 31, 2020
1 parent 0ee6ba9 commit 66cc5c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
android:layout_height="200dp"
android:layout_marginTop="20dp"
android:src="@mipmap/ic_test"
app:rStrokeColor="@android:color/holo_red_dark"
app:rStrokeColor="#FF3333"
app:rStrokeWidth="5dp" />

<TextView
Expand Down
2 changes: 1 addition & 1 deletion roundcorners/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<attr name="rBottomLeftRadius" format="dimension" />
<attr name="rBottomRightRadius" format="dimension" />
<attr name="rStrokeWidth" format="dimension" />
<attr name="rStrokeColor" format="reference" />
<attr name="rStrokeColor" format="reference|color" />

<declare-styleable name="RoundCorner">
<attr name="rRadius" />
Expand Down

0 comments on commit 66cc5c9

Please sign in to comment.