In recent months I’ve had the opportunity to play with Mono for Android from the guys at Xamarin studio, and I have to say that I’m a big fan. It removes a lot of the pain I had felt when playing around with the Android sdk using Java years ago, and it makes cross-platform developement a reality.
While using theFancy app on my Nexus 7, I was curious as to how they were able to fit together a tabhost within what appeared to me as a LinearLayout. Here’s might be how.
Let’s say I have a simple layout with an ImageView, a TextView and the TabHost:
My activity class would look something like this