Skip to content

Commit

Permalink
修复selectbug
Browse files Browse the repository at this point in the history
  • Loading branch information
lihangleo2 committed Nov 26, 2020
1 parent df22813 commit 3387d23
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions shadowLibrary/src/main/java/com/lihang/ShadowLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -446,12 +446,12 @@ protected void onFinishInflate() {
//selector样式不受clickable的影响

if (selectorType == 2) {
if (this.isSelected()) {
//if (this.isSelected()) {
//这个方法内已经判断了是否为空
setmBackGround(layoutBackground_true);
} else {
setmBackGround(layoutBackground);
}
// setmBackGround(layoutBackground_true);
//} else {
// setmBackGround(layoutBackground);
// }
} else {
if (isClickable) {
setmBackGround(layoutBackground);
Expand Down

0 comments on commit 3387d23

Please sign in to comment.