Sameer Achanta
Sameer Achanta

Reputation: 383

How to get minus and plus image buttons in android

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

Answers (2)

garima
garima

Reputation: 5242

Try this: Menu or if you want id:

getResources().getDrawable(android.R.drawable.*); 

and search under data/res/drawable.

Upvotes: 0

Elaine
Elaine

Reputation: 91

The icon for the minus sign is called "remove" in the Material Design Icon set.

Upvotes: 9

Related Questions