Posts

Showing posts with the label Custom Renderer

Xamarin.Forms Walkthrough 1: Getting Started with Xamarin

Image
In this walkthrough we will be learning the basic concepts of the world of Xamarin and Xamarin.Forms, that is a historical step in the creation of cross-platform mobile applications. Here we will talk about why or how Xamarin’s approach to create a framework differs from some of the other cross-platform frameworks. We’ll also explain the prestigious concepts of  Write Once, Run Everywhere/Anywhere. In the very beginning, there were many manufacturers of mobile devices, who had their own view or vision about the world of mobile technology look like with their operating systems. They began to build their own tools and Software Development Kits (SDKs) to support their technology, that was a little confusing for developers about how to choose the one among the others that can crack the future! If you wanted to target Android, you had to learn Java. If you wanted to target the iOS, you had to learn Objective-C. And if you dared to target the Windows Phone, you had to learn C#....

Remove Android Action Bar Icon in Xamarin.Forms

Image
In this article we are creating a custom control renderer for Xamarin.Forms allowing developers to override the default native rendering of a Xamarin.Forms control with their own platform-specific code. We have seen many Xamarin related forums having a strong discussion about removing the action bar icon from an Android project in Xamarin.Forms. Many of them suggest making the application icon as transparent by altering the MainActivity.cs in Android project somewhat like the following: [Activity (Label = "Sample Application", Icon = "@android:color/transparent", MainLauncher = true] In this condition no one notices that by altering like this they are making the application icon to be transparent. As a result the application will not show an icon when it is installed on a device. Today we are showing a way to render your page so that you will be able to remove the unwanted action bar icon depending on your needs. Here I'm going to render the Navigat...