pinned-section-listview icon indicating copy to clipboard operation
pinned-section-listview copied to clipboard

How to use/adapt this with RecyclerView

Open aresares opened this issue 7 years ago • 1 comments

Hi is it possiblew to use this with RecyclerView.Adapter, I tried like this but I get an error public class MemoAdapter extends RecyclerView.Adapter<MemoAdapter.MyViewHolder> implements PinnedSectionListView.PinnedSectionListAdapter{

error is here ` @Override public View getView(int position, View convertView, ViewGroup parent) { TextView view = (TextView) super.getView(position, convertView, parent); <--- ERROR view.setTextColor(Color.DKGRAY); view.setTag("" + position);

    Main2Activity.Item item = getItem(position);

    if (item.type == PinnedSectionListActivity.Item.SECTION) {
        //view.setOnClickListener(PinnedSectionListActivity.this);
        view.setBackgroundColor(parent.getResources().getColor(COLORS[item.sectionPosition % COLORS.length]));
    }

    return view;
}`

aresares avatar Mar 07 '17 09:03 aresares

3dv ew sk8j 6f

sebspion avatar Apr 17 '20 06:04 sebspion