Custom Views With Monodroid

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.

Here’s the associated xml layout.

Simple and easy!

Advertisements
Custom Views With Monodroid

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s