Swipeable-Cards icon indicating copy to clipboard operation
Swipeable-Cards copied to clipboard

How to update card from adapter?

Open Slake07 opened this issue 9 years ago • 1 comments

I have a button of like on card adapter. on click of button, i am updating count of likes. i want to know how can i update it. i already tried below things. but it updates wrong card.

private void updateView(int index, CardModel model){ Log.e("CARD", "first position: " +mCardContainer.getLastVisiblePosition()); Log.e("CARD", "position: " +index); View v = mCardContainer.getChildAt(index - mCardContainer.getLastVisiblePosition());

// if(v == null) // return;

    TextView someText = (TextView) v.findViewById(R.id.row_card_tvDiscription);
    Log.e("CARD", "desc: " + someText.getText().toString());

// someText.setText("8"); }

Slake07 avatar Aug 03 '15 07:08 Slake07

Any updates on this?

maduperera avatar Apr 27 '17 10:04 maduperera