Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update card from adapter? #69

Open
Slake07 opened this issue Aug 3, 2015 · 1 comment
Open

How to update card from adapter? #69

Slake07 opened this issue Aug 3, 2015 · 1 comment

Comments

@Slake07
Copy link

Slake07 commented Aug 3, 2015

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");
}

@maduperera
Copy link

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants