I'm new to Xamarin, I'm doing Visual Studio with Xamarin Cross-platform development and I want to change the icon on my app.droid, well I've already read a lot, everything I've read is saying to replace every drawable folder under resources, but I guess that will be too much effort and even following the pixel format depending on the drawable folder (e.g. drawable-hdpi, drawable-mdpi, etc) so my question is, is/are there any way(s) I can replace the icon of the app for different folders with lesser effort. Example in Ionic/Cordova I just have to do an ionic resources --icon and replace the image inside the folder resources, and will automatically create the icon to the different drawable folders.
Related
I have an image but I want to use a image from my resources folder, I drag and drop that image into the resources folder, and I see that inside it have more folders, can someone explain me also for what is one of this subfolders?
For Android:
..\Resources\drawable
However there are multiple folders inside resources to handle different resolutions. If you want to provide different resolutions do so. Otherwise the resource in drawable will be used.
For iOS:
..\Resources\
Make sure to provide #2x to support retina display.
For UWP:
store images in root folder
iOS, Android, and UWP include support for different image resolutions, where the operating system chooses the appropriate image at runtime based on the device's capabilities.
For android :
You need to put your images in resources/drawable/, every application should have alternative drawable resources for different screen densities. You should have images with the same filename in the different drawable-xxx folder.
This article will help you.
For UWP:
You must place your images in \Assets\Images. You can provide variants of an image resource by creating folders for different scales :
Assets\Images\scale-100\img.png
Assets\Images\scale-200\img.png
Assets\Images\scale-600\img.png
This article will help you understand.
For iOS :
Here you have everything
Is landscape splash screen supported in iPhone? I don't see the option like I do with iPad, as such:
That's Visual Studio?
Because I am able to see the iPhone Landscape option in Xamarin Studio.
Try switching on and off the "Assets Catalog" dropdown to see if that helps.
Also if that doesn't work you could change at anytime from Launch image to Launch screen and there you can configure your Storyboard for all different sizes and orientations.
Note: will check later in VS.
You could add them to your assets. I don't think image assets are rendered properly in VS. It doesn't show specialized image for iPhone, iPad, watch etc. Only the generic one.
Another thing you might want to consider is using launch story board and not launch images. That's the new way of doing it or the suggested way by Apple. You have far more control on it.
Customizing launch images - Manual approach
Open LaunchImage.launchimage and change the default launch images with your own using the proper resolution for each image (e.g., Default-568h#2x.png should be 640px x 1136px). If your images have different file names then open Contents.json and change the key filename for each image.
Xcode WYSIWYG approach
Drag and drop your Assets.xcassets into Xcode (7.1 or newer version). In the opened window choose LaunchImage and add the proper image for each iOS version and device. Close Xcode and rebuild your Xamarin app to use the new launch images.
Further info : Human guidelines reference
Update: 20 May - Just want to make it clear what I'm looking for, this photo shows what I mean when I mention the "AppList" https://www.flickr.com/photos/143242909#N03/27002577792/in/dateposted-public/
I still can't figure it out.
I've been messing around with the UWP in Visual Studio 15 with Windows 10 and trying to learn how to get the package manifest to display the best possible logos and icons for an application.
But I've hit a snag.
I want to use unplated icons for the taskbar and start menu. I created icons at every unplated size available, and the designer keeps placing one in the 44x44 slot. I've tried using it, renaming it, editing the package manifest in notepad...
The taskbar icon comes out fine and unplated... the one in the Apps List (Start Menu) insists on being plated.
When I try editing in notepad and renaming the 44 to:
Assets\Square44x44Logo.targetsize-44_altform-unplated.png
I get this error:
Image path contains one or more MRT qualifiers, which is not supported. Remove the 'AlternateForm' qualifier with value unplated and retry the operation.
Has anyone succeeded in getting an unplated icon to show up in the Applications List?
Please read Guidelines for tile and icon assets
Target-size list assets without plate
These are assets that don't get plated or scaled by the system.
File name format: AppList.targetsize-_altform-unplated.PNG
Impacted apps: Every UWP app
Uses:
Taskbar and taskbar thumbnail (desktop) Taskbar
jumplist Task view ALT+TAB
I'm trying to create new icons for my windows phone 7 app. Whenever I run the app I get the default icons. This has been my process.
I created a 200 px x 200 px icon in photoshop.
I exported 62 px, 99 px and 173 px square versions as PNG files.
I copied these to the images folder in my project and then ADDed them as existing files in Visual Studio 2010.
I selected each image and changed their properties to "Content" and "Copy Always".
I right-clicked properties and selected the appropriate icons for Icon and BackgroundImage.
Cleaned the solution and uninstalled previous installations from the phone.
Rebuilt the project and checked the WMAppManifest.xml to be sure the proper PNGs were listed.
I redeploy the app and the default icons continue to show in the emulator and the device when either type of deploy is tried.
Any suggestions as to what I'm missing?
There are three images that are automatically added in your WP7 project - ApplicationIcon.png, Background.png and SplashScreenImage.jpg. These are the three images you need to change (directly, not a copy). The names are important as well, since WP7 will look for those filenames in particular.
ApplicationIcon.png is the small tile you see when you slide to the right of your home screen and see the list of apps.
Background.png is the tile that gets shown when pinned to your homescreen.
SplashScreen.jpg is the splash screen that gets shown when your app is first launched.
The 200x200 (and other image sizes you created) don't have to be part of the application itself. They're used for your Marketplace submission. Depending on how the user is browsing the marketplace, the relevant sized tile will be shown. You don't need to include those in the XAP as you'll be asked to upload them when you submit your app. Only the three files mentioned at the beginning need to be in the XAP.
The art files you add to your project need to be in the root directory of your project with your App.xaml. At least this is what fixed it for me. When I added the new art to the images directory they showed up in the properties panel and I could select them. However they did not get used when deployed. I did try changing the path manually in the manifest but that didn't work (or I typed it wrong). Moving the icon art to the root fixed the issue.
I want to use custom Fonts in a mac desktop application. I am using XCode 6.
is there any way after including custom fonts (.ttf files) in the resources folder and making necessary changes in info.plist file that these fonts will show up in IB? I know that there is something in iOS but I am looking for Mac OS X desktop applications
Embedding the font in your app doesn't make it available in the storyboard/xib editor. You must install the font for system use to make it available in Interface Builder. The easiest way to do that is to drag the font files onto the Font Book app. Then you can choose the font in the font picker for your text field or label or whatever.
If you also want to embed the font in your app, you need to add Copy Files phase to your target to copy the font files into a subdirectory of your app's Resources directory, and set that path as the value of the ATSApplicationFontsPath key in your app's Info.plist. This answer explains the process in more detail.