Reputation: 1931
Would it be possible to create a class which you could pass four or so variables into that would create a button that looks similar to the new Android 3.0 Market link buttons? I am trying to learn all aspects of Android design. The button in question is below:
I think it would be cool if you could in your code create a new button that looks similar to this by going.
myButton = new myButton(hex value, mainText, subText, image resource);
The hex would determine the color bar, the mainText the Title(Apps), etc.
Is this possible? Thanks...any similar examples would be great
Upvotes: 1
Views: 351
Reputation: 9117
Yup, Create a composite view which exposes all these functionalities.
Upvotes: 1