开发者

Android Change Shape of Button

I'm trying to design a button for an android application like this:

Android Change Shape of Button

The length of 开发者_StackOverflow社区the button will be determined based on the size of the text. The text will change during runtime depending on the page the button is displayed on. Does anyone have an idea on how I can achieve this?


Just use a regular button with 9-patch png image as a background. More about 9-patch can be read here: Draw 9-patch.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜