Reputation: 383
ImageButton plusButton = new ImageButton(context);
plusButton.setImageResource(x);
I need some resource to put in place of x
in the above code line, such as, to achieve something like the minus and plus button shown near the phone number field in the image below:
But I don't know where the resource of these images lie. So please help me out with that. Thank you.
Upvotes: 1
Views: 9203
Reputation: 5242
Try this: Menu or if you want id:
getResources().getDrawable(android.R.drawable.*);
and search under data/res/drawable.
Upvotes: 0
Reputation: 91
The icon for the minus sign is called "remove" in the Material Design Icon set.
Upvotes: 9