You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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;
// someText.setText("8");
}
The text was updated successfully, but these errors were encountered: