Posts

Code to Launch the Phone Dialer in Xamarin.Forms

Image
When we code to start a voice call, we must be aware of  Dependency Service  in Xamarin.Forms. DependencyService in Xamarin.Forms provides access to the native functionality and some platform-specific implementations of the iOS, Android and Windows Phone SDKs from your PCL or Shared Project. To start a voice call there are some platform-specific implementations and permissions. 1.  The following is the procedure to implement the voice call in Xamarin.Forms. Let's create a ContentPage with an entry and a button as  HomePage.cs. 2.  Create an interface  IPhoneCall.cs  in the shared code that shows the functionality that we intend to implement. 3.  The Interface must be implemented in each platform-specific application project. Android implementation:  Before implementing the interface in Android don't forget to set some permissions in  AndroidManifest.xml . These permissions are necessary for invoking a voice call in Andr...

Floating Action Button for Xamarin.Android

Image
Floating Action Button for Android Using Xamarin in Visual Studio Android L has introduced something called a Floating Action Button (FAB), which is basically a circle overlayed on top your application. This FAB can be clicked to do an action.  Floating action buttons are used for a promoted action. They are distinguished by a circled icon floating above the UI and have motion behaviors that include morphing, launching, and a transferring anchor point. Floating action buttons come in two sizes: Default size: For most use cases Mini size: Only used to create visual continuity with other screen elements At 2014 Google I/O, Google announced a new visual language called Material Design. Material Design guides creation of user experiences that work well on different devices, with different input methods and on different platforms. Google is gradually implementing Material Design in their apps and products, and we can start playing with it, too. One interesting new desi...