I'm building cross platfomr app in Xamarin Forms but iOS not showing MasterDetailPage icon correctly.
How to solve this.
iOS:
Android:
Some idea for iOS to show like Android?
If using the app logo icon:
it will show as follows:
Because the background color of the icon is not Transparent. If the background color of icon is transparent, it will work.
Such as contacts.png:
The effect:
Or other Xamarin-50.png:
The effect:
================================Update================================
If you want to show the original color of icon, you need to use the image from Asset Catalogs, you can refer to Adding images to an asset catalog image set to add icon inside asset, but not forget to set icon Render as Original.
For example, image named Cat and add source image as follows:
Then move to the properties of Cat and Render as Original:
The effect:
Its been a while I am searching for the solution.
How to change the text color of the html content to white
on webview for xamarin.forms application(shared project) (by default the text color is black so with transparent background its not visible).I am only looking for Android platform
Nothing to on the Xamarin side regarding Data Your going to display in the Webview, thats Pure Html,css and js....
follow this tutorial to get more understading about it
https://developer.xamarin.com/guides/xamarin-forms/user-interface/webview/
I am new in Android and Xamarin . i have grid view with image and text view in my xamarin (android) application . but i wont to use font awesome icon or material icon in place of image in grid view reason behind that is reduce size of application.i try this NuGet package but it's not work for me "https://www.nuget.org/packages/FontAwesome.Xamarin/"
but i don't found proper tutorial for that. so please help me for that and i have one another doubt when i use icon in place of .png so it's help me for reducing size of application or not??
I would just like to know of something is possible as I am very new to Xamarin and I am on a time limit for an assignment. I don't mind some trial and error, but don't want to waste the time if it isn't possible
I want to have an animated gif as an activity indicator (it is a logo).
I have it working in a WebView - is it possible, in Xamarin,Forms to have this appear as an overlay while waiting on long running methods?
For example. if user clicks on a button, the app gets some info from a webservice then displays in a page. While waiting I would like to show the webview (or any other way to show an animagted gif).
So I am not asking for the code, but just if it is posible.
Thanks in advance
I was able to work this out
With the animated(loading) gif running in the WebView page I called a couple of async methods using following
await Task.WhenAll(method1(), method2());
await Navigate.PushAsync(new NextPage(var1, var2));
The laoding gif (which is an animated logo) runs until the tasks are complete then navigates to the next page
Using an ImageView apparently this doesn't look like its possible to playback animated Gif's as can be seen here http://forums.xamarin.com/discussion/17448/animated-gif-in-image-view.
So i very much doubt the ActivityIndicator would, if it could. In the ActivityIndicator I can't see any functionality to change the content of the what is shown when it is busy.
You could always create your own animated image view by creating a custom renderer instead however. It isn't particularly hard to cycle images at pre-determined gaps if you have a list of the images split up.
GIF images can be used in Xamarin forms to show custom activity indicator, since in Xamarin forms it is not possible to show GIF images directly web-view must be used. For android image must be placed inside assets folder and Build Action must be set to AndroidAsset. For iOS image must be placed inside resources and Build Action must be set to BundleResource. AbsoluteLayout can used for placing the image to center, IsBusy property of mvvm helpers nuget can used for controlling the visibility of the activity indicator. Dependency service must used for getting the image path. You can check this https://github.com/LeslieCorrea/Xamarin-Forms-Custom-Activity-Indicator for example.
Xamarin.Forms now supports .GIF, from version 4.4-pre3 and up on iOS, Android and UWP. Before using, first add the .GIF to the platforms projects, or as an embedded resource in the shared project and then use it like a regular image. The API on the Image control has been extended with the IsAnimationPlaying bindable property.
For e.g., loader.gif is added in all platform projects, then below code make it animating.
<Image Source="loader" IsAnimationPlaying="True" WidthRequest="36" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" />
This is an example of my app
I am using a Xamarin Forms 4.5 with Shell. Most of my pages have an image for the background. How do I make the Navbar transparent so that I can scale my image over that space? I see that there are options to set the Navbar background color but that had no effect.