Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you create the UI in Xamarin Android / iOS and the code in Xamarin.Forms?

I'm new to Xamarin development and feel a little bit strange about how to design the UI interface in Xamarin.Forms (portable/shared).

If I just design the Xamarin Android or the Xamarin iOS, I can get the GUI with drag and drop to finish my UI (like in Windows Forms application) and the code for the UI is automatically generated. But in Xamarin.Forms, this one is not supported (we must use code or xaml). I understand that if we use Xamarin.Forms, the same code apply for both Android or iOS.

However it's a long approach to create the UI. Is it possible in Xamarin to create the UI in Xamarin Android / iOS project and then only do the functionality code in Xamarin.Forms (portable or shared)?

I know this is a common question but it can help many new developers either to choose using Xamarin or not...

like image 723
gill23 Avatar asked May 19 '16 07:05

gill23


People also ask

Does Xamarin have an UI?

No... In xamarin you will have a markup language called Xaml that help's a lot but no drag and drop ui.

Does Xamarin work with iOS and Android?

Xamarin. Forms is an open source mobile UI framework from Microsoft for building iOS, Android, & Windows apps with .

What is the difference between Xamarin forms and Xamarin Android?

Generally, the main distinction between the two platforms is that Xamarin. Forms allows reusing the same UI code for multiple OS, whereas Xamarin Native is adapted to APIs, specific to a specific platform – Windows, iOS, Android.

How Xamarin is used for native Android and iOS development?

Xamarin Forms enable fast prototyping with built-in UI libraries, adapted both to Android and iOS; Rich access to native APIs – just like in native apps, you can get access to the user's Bluetooth, camera, microphone. Features that use these API can be written in a specific language for faster performance.


1 Answers

There is the Xamarin.Forms XAML Preview for when you are coding in XAML:

enter image description here

But in the end, yes, you are coding events, and data converters, etc... and even with tools like the Interface Builder for iOS, you still have to do all the coding to tie the UI together.

On a personal note: Almost ALL the groups that I have worked with do not use the GUI design tools for any apps that are larger then a screen or two. On iOS we avoid .xib & .storyboard like they are the cause of the black plague.

like image 89
SushiHangover Avatar answered Oct 06 '22 13:10

SushiHangover