Skip to content

Commit

Permalink
Merge pull request #13 from sfshine/master
Browse files Browse the repository at this point in the history
Fix 使用 android support 28 库的RecyclerView崩溃的问题
  • Loading branch information
yaozs authored Mar 7, 2019
2 parents 899643b + 9b619e9 commit 1284409
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public ImageShowPickerAdapter(int mMaxNum, Context context, List<ImageShowPicker
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
FrameLayout frameLayout = new FrameLayout(context);
parent.addView(frameLayout);
frameLayout.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT));
// parent.addView(frameLayout);
//frameLayout.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT));
ViewHolder vh = new ViewHolder(frameLayout, imageLoaderInterface, this);

frameLayout.addView(vh.iv_pic);
Expand Down

0 comments on commit 1284409

Please sign in to comment.