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

Cannot add image/icon inside buttons. #125

Open
royjavelosa opened this issue Feb 29, 2016 · 1 comment
Open

Cannot add image/icon inside buttons. #125

royjavelosa opened this issue Feb 29, 2016 · 1 comment

Comments

@royjavelosa
Copy link

Is there a way to add images or icons inside the buttons?
I hope its possible because the welcome card has check icon/image on a button.
Do I need to override or create my own methods to accomplish this?
.addAction(R.id.left_text_button, new TextViewAction(this)
```


> > .setText("RANDOM_CARD")
> >                         .setTextResourceColor(R.color.black_button)
> >                         **.setImage() <-- something likea  setImage method**
> >                         .setListener(new OnActionClickListener() {
> >                             @Override
> >                             public void onActionClicked(View view, Card card) {
> >                                 Log.d("START", "RANDOM CARD");
> > 
> 
> ```

@FHellmann
Copy link
Contributor

I think the easiest way is to copy the layout code from here to your own layout file and define the icon you want.

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