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:
Related
For my Xamarin.iOS project I am using LaunchScreen.Storynboard for showing launch screen. For adding images, I am using asset catalog. My application supports both orientations on iPad. However, when I open imageset in visual studio it shows only one #2x image for iPad which will be occupied by Portrait image. Now, for adding landscape image I have edited its Contents.Json file and added image details there. added image locally and also added its entry in projects .csproject file.
However, when I build and run application its only picking one image and applying it to both the orientations.
e.g. Its picking landscape image and applying it in both landscape and portrait launch screen image. Now, in portrait mode image is showing vertically stretched.
which is causing UI issue.
How to set image for both the orientations in visual studio xcassets imageset?
Any suggestion would be appreciated.
Thank You.
How to set image for both the orientations in visual studio xcassets
imageset?
LaunchImage ImageSet is the old way which has been deprecated, we don't need to set storyboard or xib on Launch Screen, but it is nothing except image. We can't find a way to set LaunchImage ImageSet in the latest Visual-Studio.
Refer: Xcode 11 UILaunchImages has been deprecated, use launch storyboards instead Warning
Now, in portrait mode image is showing vertically stretched. which is
causing UI issue.
You should use auto-layout to layout your image in both landscape and portrait orientation so that it won't be stretched. See document here: Managing Launch Screens with Storyboards
:
I'm running into an issue where an iOS app project using Launch Storyboard does not display some images from the asset catalog. But it can display another image in the same image view. This tells me that the image view is set up correctly, and something is wrong with the image itself
How can I understand why my image is not displayed on launch screen when starting app?
I checked the asset catalog membership, and the images are members of the correct target. The image displays in the interface builder preview.
I checked and images are not displayed when saved in either JPG or PNG format.
The image previews fine on Storyboard preview.
I tried using smaller image, so it doesn't seem to be a file size issue.
Does not work on either device or simulator.
This image displays:
This image does not display:
I am trying to show multiple images in splash screen. Now I am showing only one image. How can I show multiple images in Xamarin Forms.ios project. Please suggest any idea. Thanks in advance.
Look into creating a launch screen using the Interface Builder. You can put images, labels, basically every control on there if you want and set it as the launch screen in your info.plist. When creating a new project you will get a launch screen storyboard file in your iOS project.
https://developer.xamarin.com/guides/ios/user_interface/designer/introduction/
I have images.acassets in my XCode project. I have set AppIcon source and Launch Image source properly. Everything works perfect. I am able to see the launch image correctly once the app is launched. Can I use this same launch Image inside the app in different xib, where I would like to set this image as background image for one of the xib. When I select the imageview from xib and click on image in the right panel, I am not able to see the image listed in the all image list. Any idea??
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??