Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Equivalent to a .NET UserControl

I'm just getting into Android development. I'm trying to figure out if its possible to setup something similar to a user control that's available in Silverlight, WP7, or ASP.NET, where I can define a reusable component in a layout, and then embed that layout in another layout.

Is that possible?

Thanks.

like image 528
Brian Mains Avatar asked Aug 28 '11 02:08

Brian Mains


1 Answers

Yes it is possible. Here is the reference. You have a couple of different options. I've found just building compound controls has been good enough for me, but you can do fully custom Views if you need to.

like image 103
i_am_jorf Avatar answered Oct 26 '22 04:10

i_am_jorf