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
Card card = new Card.Builder(this)
.withProvider(new CardProvider())
.setLayout(R.layout.material_image_with_buttons_card)
.setTitle("Card number 5")
.setDescription("Lorem ipsum dolor sit amet")
.setDrawable(R.drawable.photo)
.addAction(R.id.left_text_button, new TextViewAction(this)
.setText("Izquierda")
.setTextResourceColor(R.color.black_button)
.setListener(new OnActionClickListener() {
@Override
public void onActionClicked(View view, Card card) {
TextViewAction act = (TextViewAction) card.getProvider().getAction(R.id.right_text_button);
act.setText(act.getText()+"e"); // the other action text modified here
}
}))
.addAction(R.id.right_text_button, new TextViewAction(this)
.setText("Derecha")
.setTextResourceColor(R.color.accent_material_dark)
.setListener(new OnActionClickListener() {
@Override
public void onActionClicked(View view, Card card) {
}
}))
.endConfig()
.build();
If you try this code in your own project, you will meet a problem:
Some card cannot be updated immediately, it always happen.But it can be updated by sliding the list.
It's a bug?
The text was updated successfully, but these errors were encountered:
when I using such the follow code:
If you try this code in your own project, you will meet a problem:
Some card cannot be updated immediately, it always happen.But it can be updated by sliding the list.
It's a bug?
The text was updated successfully, but these errors were encountered: