I search a tool or app for create assets Android and iOS from an SVG file (for not lost resolution or quality).
For example, I have my_img.svg I use app and result a zip with :
iOS
my_img#3x.png
my_img#2x.png
my_img.png
Android
hdpi/my_img.png
xhdpi/my_img.png
xxhdpi/my_img.png
...
I work with Xamarin and I don't want use Android Studio and Xcode just for create assets.
Do you know app free or not for this, with SVG in source?
For Android you can use Asset Studio
It also helps to choose the right sizes for action bar icons, app icons, etc. As I'm not an iOS Dev I would just go along with the answer of Brayan Armando Yaquian Gonzale for that platform.
Have you heard about w3goodies for ios and cloudconverter for android?
Related
I want to display a pdf file in an android app. I used the pdf renderer sample app from android studio. The rendered image does not have any text by default. That is because the pdf uses a custom font which has to be installed on the PC to display the file.
PS: It would be very helpful if you could use the same android sample(PdfRendererBasic) app from android studio.
Thank You.
I got some file from a graphic designer such as CSS, HTML, JSON, SVG, etc for creating an application based on android. However, I don't know how to apply them into an android project. Please help me.
Is it is possible to apply css files in android application? For example if I have css file for button, then how can I access that file in my android application if am using android studio?
Android isn't support CSS. Instead android has it's own mechanism, styles.
Or you can use Apps with HTML and CSS in WebView which is packaged in android assets.
Or you can use Frameworks like PhoneGapp,Corona,Titanium.
Comparison between Corona, Phonegap, Titanium
I'm creating an Android app that will handle collections of image files.
I'm looking for an archive format (and library) similar to .zip or .tar that meets these requirements:
Open source
Allows extraction of a single file without extracting
all files
Capable of containing image and text (probably json) files
I'm looking for something that is well supported on Android. Something that works for Android and IOS would be a plus.
What about Gzip? Open source and it has native support on Android.
For iPhone, you could use the ZipArchive library, though it may also have native support. (Search the SDK, I don't know how!)
I'm working on the UI for an Android and iOS app. It will likely be built with PhoneGap (or the like) meaning the UI will be an HTML5 implementation.
For most of the images, we've decided to go with SVG files as they scale well across the various Android screens and are great for Retina on iOS.
So far, using .svg files is working fine for us and thanks to Safari and Chrome support, easy to test locally in a standard browser.
The catch is that these .svg files are going to get rather large as we turn them into sprites. As such, I'm looking into using GZIPped svg files (.svgz).
A quick test shows that a 50k SVG we are using compresses down to 8k via Gzip.
The catch, however, is that it appears that there needs to be a client/server relationship going on to decompress the SVGZ file. I can't get Safari to render the linked .svgz file when run locally (as I assume it will be when via a webview in a PhoneGap compiled app). Chrome appears to be able to render the svgz, though.
So, my questions:
Is there any way to use .svgz files locally on iOS via a PhoneGap app (I haven't gotten to the point where we're compiling via PhoneGap yet so can't test that part at this time)?
Any known issues with .svgz on Android (given it seems OK on desktop Chrome)?
Should I even be bothering with .svgz in this situation where there aren't actual download speed concerns (outside the initial app download)?
I don't know much about issues with svgz on either iOS or Android, but you definetely shoudln't worry about the size of the .svg files compared to .svgz, not even for the initial download. All the files in an Android and iOS packages are compressed anyway, so zipping those files yourself won't bring you any gain. It might actually be better for your app performance-wise to keep them un-compressed.