[mono-android] Multi-screen applications with alternating layouts

Ronny Dahl ronny.dahl at keywork.no
Wed Dec 12 06:12:50 UTC 2012


Hi Tom,

Thanks for your feedback. Since I have to support API level 8 and upwards I'll add support for both flavors (layout-sw* for API level 13 and upwards and layout-large for those between 8 and 13). But if the designer doesn't work then I have to add controls programmatically instead. Can you please point me in the right direction for doing that?

Kind regards,
Ronny Dahl (+47 909 72 744)

Keywork AS
http://www.keywork.no/

From: monodroid-bounces at lists.ximian.com [mailto:monodroid-bounces at lists.ximian.com] On Behalf Of Tom Opgenorth
Sent: Thursday, December 6, 2012 5:19 PM
To: Discussions related to Mono for Android
Subject: Re: [mono-android] Multi-screen applications with alternating layouts

I usually do my Android layouts by hand, so I can't speak directly about the designer, however, one thought does come to mind.

The smallest-width qualifier wasn't introduced until Android 3.2 (API Level 13). It will be ignored by earlier versions of Android. I wonder if maybe your targeted version is < Android 3.2, which is causing the Designer some problems? Again, just a theory, but might be worth checking out.

On Thu, Dec 6, 2012 at 5:25 AM, Ronny Dahl <ronny.dahl at keywork.no<mailto:ronny.dahl at keywork.no>> wrote:
Fellow developers,

I have used both MonoDroid and Mono for Android about a year with emphasis on MonoTouch. Lately I have been tasked to develop an Android application as well. Seeing that Android comes in many flavors size-wise I have read some of Xamarins documentation on the subject of Multiscreen applications, but alas, I cannot get it to work.

My issues are as follows:
- When I include alternating layouts such as /Resources/layout-sw720dp/Main.axml the designer opens and I am not able to switch back to the original layout (/Resources/layout/Main.axml) any more (in the designer that is - can still see the XML).
- When I do changes to the alternate layout, it happens more often than not that the original layout is updated as well. I have also experiences several times that if I have alternating layouts, the entire directory is removed when I try to do changes to the respective layout.
- Side note: I noticed earlier that the device list on the designer toolbar had many entries in it. Now it is completely empty.

My development environment:
- Both MonoDevelop and Visual Studio 2010/2012 on three different computers (with valid licenses). I reinstalled one of my laptops an hour ago, created a new Android application with one of the default templates and the above-mentioned issues still apply. My computers are quite new so neither performance/drivers should be an issue.

Any ideas or suggestions?

Regards,
Ronny Dahl

_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com<mailto:Monodroid at lists.ximian.com>

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid



--
http://www.opgenorth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20121212/cfb99f63/attachment.html>


More information about the Monodroid mailing list