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

1 Answer 1

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
2
  • Hey Omar.... Where to store that xml file and how to access it please reply soon..
    – Abhi
    Mar 10, 2014 at 8:43
  • waiting for your reply
    – Abhi
    Mar 10, 2014 at 8:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.