File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
java/com/minibugdev/drawablebadge/demo Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class DemoActivity : AppCompatActivity() {
2424
2525 private fun drawBadge (number : Int , position : BadgePosition ) {
2626 DrawableBadge .Builder (applicationContext)
27- .drawableResId(R .mipmap.ic_launcher )
27+ .drawableResId(R .drawable.selector_badge )
2828 .badgeColor(R .color.badgeColor)
2929 .badgeSize(R .dimen.badge_size)
3030 .badgePosition(position)
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <selector xmlns : android =" http://schemas.android.com/apk/res/android" >
3+ <item android : drawable =" @drawable/ic_launcher_round" android : state_pressed =" true" />
4+ <item android : drawable =" @drawable/ic_launcher_round" android : state_focused =" true" />
5+ <item android : drawable =" @drawable/ic_launcher" />
6+ </selector >
You can’t perform that action at this time.
0 commit comments