MaterialList icon indicating copy to clipboard operation
MaterialList copied to clipboard

Cannot add image/icon inside buttons.

Open royjavelosa opened this issue 9 years ago • 1 comments

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

royjavelosa avatar Feb 29 '16 12:02 royjavelosa

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

FHellmann avatar Feb 29 '16 13:02 FHellmann