Skip to main content

Posts

Apply Borders on Xamarin Forms with User Interface Elements

Hello, Some of developer including me who start from initially stage of development Xamarin.Forms are aware how to apply Border. so I found solution and share with all developer via this blog. Apply Border of Text or any Layout here is simple way to apply this. Please see screen shot and In this screen shot there is a Border is available in Terms & Conditions section. We need to place some of lines of code for this. Sample Files Code : <?xml version="1.0" encoding="UTF-8"?> <ContentPage     xmlns="http://xamarin.com/schemas/2014/forms"     xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"     x:Class="Spot.Views.TermsConditionPage"     Title="Terms &amp; Conditions"     BackgroundColor="#00000000">     <ContentPage.Resources>         <ResourceDictionar...
Recent posts

Lottie Animations in Xamarin.iOS

Hello, Today I will give you some of detail of and How to setup Lottie animation in Xamarin iOS. Lottie is a library created by Airbnb , It will provide a good animation in Android as well as iOS in Xamarin. I want to Specially thank to Martijn van Dijk for this awesome library is available make available in Xamarin. Question) Why I need to write this Blog :   Answer) I saw people were frustrated because Lottie was not working for them, with this post I will try to explain step by step how to make it work. Okay, Guys Lets start it. Step by Step we will start and apply Lottie Animation in Xamarin.iOS. In 4 Steps we are able to steup Lottie Animation in Xamarin.iOS   1) Install Lottie Package in Xamarin.iOS project : 2) Write code to play Animation in Controller file : 3) Place that json file in Resources foler and main point is check its build action is bundle Resources : 4) Compile your iOS project :   Feel free to comment if you...

Lottie Animations in Xamarin.Android

Hello, Today I will give you some of detail of and How to setup Lottie animation in Xamarin Android. Lottie is a library created by Airbnb , It will provide a good animation in Android as well as iOS in Xamarin. I want to Specially thank to Martijn van Dijk for this awesome library is available make available in Xamarin. Question) Why I need to write this Blog :   Answer) I saw people were frustrated because Lottie was not working for them, With this post I will try to explain step by step how to make it work. Okay, Guys Lets start it. Step by Step we will start and apply Lottie Animation in Xamarin.Andorid. In 5 Steps we are able to steup Lottie Animation in Xamarin.Andorid 1) Install the Lottie Xamarin.Android project : 2) Add your view in your XAML : 3) Write code to play Animation in CS file :   4) Place that json file in Assets foler and main point is check its build action is androis asset is checked or not :     5) Compile y...

Download Image in LOCAL

  Code for Download Images in Android . Just path URL of Image and it will download and store in Mobile Phone. Code :                var url   =   new   Uri ( " https : / / dl . dropboxusercontent . com / u / 72783403 / dharmik . jpg " ) ;              var   webClient   =   new   WebClient () ;              webClient . DownloadDataAsync ( url ) ;              webClient . DownloadDataCompleted   +=   ( sender ,   e )   = >   {                  var   bytes   =   e . Result ;   //   get   Data   downloaded            ...

Calling Method

public   async   Task < string >   Get_Method   ( string   name )          {                           if   ( name   ==   " News " )   {                  request   =   ( HttpWebRequest ) HttpWebRequest . Create   ( new   Uri   ( BaseUrl   +   Base_Blog )) ;                   // request   =   ( HttpWebRequest ) HttpWebRequest . Create   ( new   Uri   ( parameter ) ) ;              }   else   {                ...

Create Core Project in Xamarin

In Xamarin For Database , Web services calling for Common for Android, iOS, Windows . Step to Create that Core : 1) Right click on Project  2) Click Add 3) Add New Project 4) At Left hand side "Other" option available and at there ".Net" feature available. 5) There are many option One of name "Shared Project" And your Core part created. so In that Project create all stuff like all query, Database creation, Webservices Calling.

Open Webpage in Default Browser

Open webpage to default browser you need to write this code in Xamarin Andorid :) Code :  var   uri   =  Android . Net . Uri . Parse   ( " http : / / www . dharmik . me " ) ; var   intent   =   new   Intent   ( Intent . ActionView ,   uri ) ;      StartActivity   ( intent ) ;