bradley4
bradley4

Reputation: 3938

Android Change Shape of Button

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

enter image description here

The length of 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?

Upvotes: 1

Views: 1979

Answers (1)

inazaruk
inazaruk

Reputation: 74790

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

Upvotes: 3

Related Questions