It's my first time trying to publish my app on Google Play. I am using Xamarin 4.2 and C#.
My questions:
Can I use Microsoft Paint to create launcher icons?
My plan is to create 36x36px (ldpi), 48x48 (mdpi), 72x72 (hdpi) and 96x96 (xhdpi) launcher icons: Is this Ok so far?
The documentation says .PNG; I guess ldpi and mdpi are just naming conventions?
However my search found different numbers of icons and different sizes.
My plan is to place each of these icons under a separate folder as follows:
Resources\drawable\drawable_ldpi\ic_launcher
Resources\drawable\drawable_mdpi\ic_launcher
etc. Is this arrangement correct?
What about the high resolution application icon: Is it placed in the resources folder? or uploaded separately into Google play console?
First take a look at googles iconography guide: http://developer.android.com/design/style/iconography.html
As you can see each density has a name, you should create a drawable_(density) folder inside the resources directory for each one you plan to support and use the correct icon size.
As an example you should have Resources/drawable_mdpi (density ñame is always in lower case)
And for the hi res icon i supose you refer to the image for google play, it is uploaded when you fill your apps description.
About using Paint to create those icons, well, using paint for anything more complex than drawing a line is a bad idea...
If you don't have any program like Photoshop you always can use Gimp, its free and very powerful:http://www.gimp.org
Related
I am using the Camera code base from
https://github.com/rasmuschristensen/XamarinFormsImageGallery
to open camera, take picture and show in the gallery. In the droid project, after taking the picture, the dialog asks either to keep the photo or discard it using OK and Retry button. Is there anyway, I can avoid this step and go to next step.
Regards
Using the Media plugin you won't be able to do it. This plugin use the standard way of capturing photos in Android which rely on the device actual camera app. The save/retry functionality is part of the Camera App and we don't have access to it as this will be different between Android "providers" (Samsung, LG, Sony, etc)
One way to avoid this is capturing the photo within your own app using the SurfaceView and not using the camera app. I found this example but unfortunately is written in Java but I think it's not too hard to translate into Xamarin/C#.
I used to develop for Android and iOS, and for multiple screen support we use to use mdpi, hdpi, xhdpi.
Now I want to develop for Windows Phone, I want to set a background to a button and I don't know how to define image size to support all screen sizes.
You dont need to provide different assets. See info from MSDN below.
There is a way to support different assets/resources. But we have never done this bevore in our apps.
From MSDN:
Assets such as graphics, video, audio, and icons make up a large
percentage of an app’s size. Including assets for all resolutions in
your app uses a lot of space in your app. For most apps, we recommend
that you include only WXGA assets. WXGA assets have the highest
quality, and they automatically scale to work well for other
resolutions.
More info: Multi-resolution apps for Windows Phone 8
Multiple resolution handling is built-in with WP8.1. You simply need to name your images with the proper qualifier to ensure it is loaded properly by the device.
You can refer to the tutorial here for more info on how to properly name your image resources:
Quickstart: Using file or image resources
I have a Leaflet website that uses a custom tile set for a game map.
I want to display in my C# client app, tiles from the Leaflet map using basically the same algorithm, as if re-creating leaflet in C#.
I already have the placeholder tiles layed out in a grid and have basic navigation, but running into the problem of knowing the tile values to use for the URL (from leaflet docs):
'http://map.somedomain.com/{layer}/{z}/{x}/{y}.png'
I have the layers names, and I want to know the exact X,Y for each tile from a provided zoom level.
How can I calculate this so that when I send out a download request it doesn't hit file not found?
Hope that makes sense.
Thank you.
PS: I don't have access to windows forms, I am using Unity3D engine, if that makes a difference.
I think you would be best off by going over the sourcecode of L.GridLayer which L.TileLayer is extended from. The _pruneTiles function would be a good starting point:
https://github.com/Leaflet/Leaflet/blob/master/src/layer/tile/GridLayer.js#L204
You Can find a tutorial for embedding Leaflet in a C# app in this book:
Leaflet.js Essentials - Chapter 6
I am developing windows 8 metro app using XAML/C# .
I have added scaled versions of every images in the solution to support different screen resolutions .
Each image will have 2 additional copies in different sizes (100,140,180 %).
eg: sample_100.png,sample_140.png,sample_180.png
Now i want to know how can i choose the correct image based on screen resolution?
Us using a converter a good practice?
You don't need to do anything if you name them correctly. If you use names like
sample.scale-100.png
sample.scale-140.png
sample.scale-180.png
then you can use them in XAML by just typing sample.png. It automatically picks up the one with the correct resource qualifier.
Check this msdn article:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh965324.aspx
I am using IShellItemImageFactory to get icons and thumbnails for files and directories. In most cases this works great, but in some cases I get an image that is quite different from the one in explorer.exe.
Folders in explorer.exe show some of their contents represented as pieces of paper. Whenever I request an image for a directory, I get an empty folder in my program.
Videos playable by Windows Media Player in explorer.exe show as a piece of filmstrip with a thumbnail as the cell. When I request an image for such a video file I get just a thumbnail with no movie strip border.
I am sure there are other examples, but in general I just want to know if there is a way to request an image from the system that looks exactly like whatever is displayed on the desktop or in a folder in explorer.exe. I want everything to look the same so my program isn't "sloppy."
The answer is here:
http://msdn.microsoft.com/en-us/library/cc144118(v=VS.85).aspx#adornments
The adornments are the effects I am missing and it seems I would have to render them manually.
TiKu on MSDN explained this to me and deserves the credit.