question

MarcoDeSanta-0163 avatar image
0 Votes"
MarcoDeSanta-0163 asked RobCaplan edited

Is converting website to mobile app better than creating one with Xamarin?

Hi,
If I am a weak developer would that be better if I just convert website to Android app instead of creating one with Xamarin. I mean, my app doesn't have to be great and stuff because its only a company landing page so no complicated stuff needed. If yes, can you say something about Shibe Apps (https://www.jamblamapps.eu)?

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JessieZhang-2116 avatar image
0 Votes"
JessieZhang-2116 answered JessieZhang-2116 commented

Hello,


Welcome to our Microsoft Q&A platform!

Is converting website to mobile app better than creating one with Xamarin?

There is no better or worse distinction between converting website to mobile app and creating one with Xamarin, which mainly depends on the actual requirements

If you want to display website in mobile app, you can use Xamarin.Forms WebView to achieve this.

WebView is a view for displaying web and HTML content in your app. And it also supports navigation through several methods and properties that it makes available:

A usage:

 <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
              x:Class="WebViewSample.InAppBrowserXaml"
              Title="Browser">
     <StackLayout Margin="20">
         <StackLayout Orientation="Horizontal">
             <Button Text="Back" HorizontalOptions="StartAndExpand" Clicked="OnBackButtonClicked" />
             <Button Text="Forward" HorizontalOptions="EndAndExpand" Clicked="OnForwardButtonClicked" />
         </StackLayout>
         <!-- WebView needs to be given height and width request within layouts to render. -->
         <WebView x:Name="webView" WidthRequest="1000" HeightRequest="1000" />
     </StackLayout>
 </ContentPage>

Note:

If you want your website to work better on mobile, you may need to adjust the appearance of the page, such as the size of the elements in the page.

Of course, if you want to create one app with Xamarin, you may need to do more work. For exmaple, you need to design the UI of your app and code for the xamarin app , and you also need to write the data interface if your app communicate with the back server.

So, it's up to you to decide which method to use.



Best Regards,


Jessie Zhang


If the response is helpful, please click "Accept Answer" and upvote it.



Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MarcoDeSanta-0163 ,I have not heard from you for a couple of days. Please let me know if there is anything that I can help here.

0 Votes 0 ·