There are 2 ways to create custom views/controls with Android. You can either extend the View class (or other classes inheriting from it), or you can extend a Layout class. What I’ve found (for now) to be the simplest path to the goal is the latter. Here’s how.
Let’s say I want to create a custom control called PersonControl.
Let’s say I want to create a custom control called PersonControl.
|
Here’s the associated xml layout.
12345678910111213141516171819202122232425262728293031323334353637 |
|
No comments:
Post a Comment