0

I have taken a button in my xml and set its background img1 now on the click of that button i want white glow around that button edges . I have refereed this links http://developer.android.com/guide/topics/ui/controls/button.html Android ImageButton with a selected state? Standard Android Button with a different color

Community
  • 1
  • 1
Abhi
  • 433
  • 2
  • 7
  • 17

1 Answers1

0

You can add a white border to the button. please enter this question to see how to add border: Android - border for button

Store the xml in

res/drawable/filename.xml

And then you can access it like this:

In Java: R.drawable.filename
In XML: @[package:]drawable/filename
Community
  • 1
  • 1
Omar
  • 7,835
  • 14
  • 62
  • 108