Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgeek committed Oct 31, 2017
1 parent 7dcdc21 commit d28abba
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType
} else {
// normal item 类型
View view = LayoutInflater.from(parent.getContext()).inflate(mItemLayoutId, parent, false);
view.setClickable(true);//让RecyclerView.SimpleOnItemTouchListener实现点击时的selector生效
return new ClassicRVHeaderFooterViewHolder(view);
}
}
Expand Down

0 comments on commit d28abba

Please sign in to comment.