custom button

+1 vishal sharma · February 1, 2015
i wanna add a circular button in my app how to do that plz tell me asap

Post a Reply

Replies

Oldest  Newest  Rating
0 Branislav Lazic · February 1, 2015
No. What have you tried till now?
+1 vishal sharma · February 2, 2015
i have watched all the videos of bucky till now and applied most of them in my app,Now i wanna add a button with some features like glowing.So in that concern i was asking,would u please help me. 
@Branislav Lazic
+1 Dol Lod · February 3, 2015
I know how to do it. First get the image and add it to the project. Then go to the layout you wish to add the button to. Then go to design. Look for a button called ImageButton. Then put the drawable you want to use as the src for the image button. 

Additionally, http://developer.android.com/reference/android/widget/ImageButton.html describes this pretty well. 

You will only be able to see the image when you actually test it, not in the editor when designing. I hope this answers your question. You probably can use a direct image, but the xml drawable is better because it gives more attributes to manipulate. 
+1 Dol Lod · February 3, 2015
For a circular button, get a circular image that you want to use as your button and then follow the steps I suggested previously. 
  • 1

Java / Android Development

107,024 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator