开发者

How to add border for the buttons in android

Hi I am using buttons in my list view. I would like to add border to my button. How can i do that. My XML code for creating开发者_如何转开发 button look like this. android:text="Search" >

Please suggest me some solution or provide me some source code for doing this.

Thanks in advance.


One way is to create the background new (9patch drawable) and then set it to the background. How to do this is explained here: http://developerlife.com/tutorials/?p=1239

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜