Skip to content

Commit

Permalink
添加方法
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenBen committed Aug 1, 2023
1 parent c968419 commit 84fd3c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ afterEvaluate {
// You can then customize attributes of the publication as shown below.
groupId = 'com.shencoder'
artifactId = 'mvvmkit'
version = '1.1.2'
version = '1.1.3'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ object DataBindingAdapter {
setBackgroundResource(resId)
}

@JvmStatic
@BindingAdapter(value = ["setViewSelected"])
fun View.setViewSelected(selected: Boolean) {
isSelected = selected
}

@JvmStatic
@BindingAdapter(value = ["setRefreshingStatus"])
fun SwipeRefreshLayout.setRefreshingStatus(isRefreshing: Boolean) {
Expand Down

0 comments on commit 84fd3c8

Please sign in to comment.