Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int row_index = -1;
- @Override
- public void onBindViewHolder.........
- ........
- holder.linieriven.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View view) {
- row_index=position;
- notifyDataSetChanged();
- ....................................
- .................
- }
- });
- if(row_index==position){
- holder.linieriven.setBackgroundColor(Color.parseColor("#675B77"));
- }
- else {
- holder.linieriven.setBackgroundColor(Color.parseColor("#483A5C"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement