Skip to content

Commit

Permalink
fixed #66
Browse files Browse the repository at this point in the history
  • Loading branch information
liyujiang-gzu committed Nov 23, 2016
1 parent 6622b7a commit 83083be
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ public void run() {
//选中这一项的值
selectedIndex = index + offset;
onSelectedCallBack();
//默认选中第一项时颜色需要高亮
refreshItemView(itemHeight * index);
}
});
}
Expand Down Expand Up @@ -445,6 +447,9 @@ private class LineDrawable extends Drawable {

@Override
public void draw(@NonNull Canvas canvas) {
if (!lineVisible) {
return;
}
if (null == selectedAreaBorder) {
selectedAreaBorder = new int[2];
selectedAreaBorder[0] = itemHeight * offset;
Expand Down

0 comments on commit 83083be

Please sign in to comment.