Importing Vector Asset into Android Studio - android-studio

I've created a few vector assets using Vectornator. If I import those assets into Android Studio, I receive a parsing error - as shown in the attached picture.
Why do I get this parsing error and how can I create vector assets that do not create this error?

I use FIGMA/SKETCH to create SVG's.
It was a bug, so please check your android version and update to newer one.
also check out these possible error,
Internal error parsing svg file in android studio

I've solved exporting the Vectornator project to PDF and then converting the PDF to SVG (for example with this online tool)

I also had this problem using Android App and Vectornator (Being too cheap to pay for adobe illustrator and all the cloud subscription stuff that goes with it). Haven't fully solved the problem yet, but the problem lies with Vectornator's JSON code with opacity. If you remove all opacity it will work better. Another thing is that it really appears to save a bitmap and wrap it in SVG code instead of being a clean SVG code, and a lot of online resources do that. If you open the code of the image you will see in the javascript that the code isn't quite right, which is probably why it is free. Moreover, Android has not gone out of its way to make itself compatible with a program like Vectornator, but they do go out of their way to "play nice" with adobe programming. I have come up with these solutions:
Pay for and download a program like Affinity Designer for $9.99 on Ipad (1 time fee) which has a cleaner formatting capability and import it in there then turn to SVG (and fix the issues in the design as they pop up.
Use Vectornator only for art, and not for programming, and then buckle down and use Adobe Illustrator because let's face it, they have a lot of money behind them to make sure that their products "play nice with others" (Meaning they actually pay Android to provide programming to support their code).
Import a ton of code from Maven Libraries for SVG support and essentially build an in program svg to png converter that replicates what Android App does when it imports a vector, but is under your control. If you do this you will upload all your svg files directly to this mini program instead of using the Android App's Import Image and Vector directory under File New.
I was trying everything but using Adobe Illustrator, but it is a huge pain and a lot of headache. Adobe Illustrator still has minor issues, but not the huge glaring problems of Vectornator.

Related

SVG from web to illustrator

Im looking to make a system in which a user can create simple shapes and text on the web using SVG. I'd then like to be able to save whatever they've done to a database so they can come back and edit further, and/or be able to export what they've created from the database into illustrator.
Is there one particular library or approach that would make doing this feasible?
This may send you in the right direction SVG-Edit project.
If you just need a good svg framework to write your own, svg.js has always been good to me.
Good luck.

How should I create a desktop mockup?

I want to create a desktop mockup on Elementary OS 0.2. By "mockup" I mean something that shows off the aesthetic of the mockup, mostly just showing what selecting/clicking/hovering over a button or widget does to that particular part of the UI. I'm thinking about creating the various parts on GIMP and coding animation and transition logic into the final result. I know that something like this can be done in HTML/JS, but I want to avoid using those. Is there anything optimized for a project like this? I'm open to most languages.
Try WireframeSketcher wireframing tool. Unlike Gimp or PowerPoint, WireframeSketcher is designed specifically to help you create mockups and wireframes. It comes pre-packaged for Debian systems and can also be found in Software Center and so it works on Elementary OS too. Note that it's a commercial tool, but you can try it freely for 14 days.
Most PMs at large companies mock these things up using a presentation package like PowerPoint. If you know the routine and where to click it can look fantastic with minimal effort.
MockupUI does both wireframe and Windows native looking mockups. It uses your desktop's visual style which makes screens and widgets look as a standard Windows application. MockupUI lets you export screens as individual images, docx, pdf or html.
Actions/interactions can be explained by highlighting widgets and adding text annotations.

Programming with GDCM in Windows and changing pixel data with VTK?

I have two questions.
First: I haven't got any definite documentation on how to use the GDCM library in Windows. Is it at all possible to use GDCM library in Visual Studio in windows? If so, could you please provide me any instruction how to install the library in Visual studio? I want to change or add something to the way the GDCM command "gdcmimg" functions.
Second: I have some multiframe dicom images where I need to modify the pixels and keep all the tags(private or non-private) intact. I have tried with Matlab, GDCM and Dcmtk. But in each case there is some problem. Matlab can't change multiframe images as it runs out of memory. GDCM can't keep the tags intact(I use the "gdcmimg" command) and I don't know yet how to change this functionality, dcmtk(I use the "dcmodify" command for that purpose) can only change the single frame dicom images and mysteriously it fails to do so in case of multi-frame dicom images when the images are provided by some vendors. What I mean is that, I tried with the multi-frame dicom images made by myself using matlab and I could change their pixel data in using "dcmodify", but when I try to do so with vendor provided multi-frame dicom image it fails to change the pixel data. So, now I want to try with VTK. Could you please say me whether or not VTK can change the pixel data of a Multi-frame dicom image while keeping all the tags, private or non-private, intact?
Thanks
You can work with GDCM on windows in Visual Studio.
Download the GDCM source.
Download CMake
User CMake to generate a visual studio solution for GDCM
Build the Visual Studio Solution
Use the built library in your own projects.
GDCM has very little documentation.
In regards to the private tags. The general practice is that when you modify/derive an image you do not keep the private tags. The only private tags should be the ones you add.
When all else fails, read the documentation:Configuring and Building With VS .NET 2003. Of course this works with any newer Visual Studio, thanks to the use of CMake.

Getting started with Xcode 4.2

I have recently got a Mac and I have downloaded Xcode 4.2 from the store. I am trying to get to grips with iPhone development but I am having real troubles. All the tutorials I seem to find online, when they create a project, they had a resources folder, and inside that there is xib file which allows them to use an interface builder.
This does not appear on 4.2, so makes it kinda hard to follow majority of tutorials have the resources folder. How do I get this back? Or how do I access this file on 4.2?
Also, I could someone explain to me where the objects list is? I started following this tutorial
http://maybelost.com/2011/10/tutorial-storyboard-in-xcode-4-2-with-navigation-controller-and-tabbar-controller-part1/
as it seemed to be using Xcode 4.2, but when I get down to the storyboard section, it says
"Of course, we really want another tab on there so we can see the switching between the two – so lets drag in another Navigation Controller from the Utilities (objects) list and plonk it down somewhere. "
Except I cannot find this objects list? How do I open this objects list? What am I missing?
Sorry if these questions seem very basic, I am new to both Macs and iPhones. Android development seems a HELL of a lot easier from what I can see so far.
Thanks in advance for any help.
Also would be grateful if anyone could point in direction of any good up to date tutorials
I have a post on http://www.armandvanderwalt.co.za it will give you a nice understanding of how most stuff fits together, I don't use Interface Builder at all since it only makes the app bigger. Have a look at my blog post, still need to do styling, and add more posts but it is a nice beginner guide.
Most posts you are finding still use XCode 3 that's why you can't find certain things.
Also have a look at http://www.raywenderlich.com
What they are referring to as the object list, in XCode 4 it is found in the bottom right corner of Interface Builder. In XCode 4 Interface Builder is part of XCode and no longer an external application. Therefore when ever you open a XIB file Interface Builder also automatically opens

Where can I get graphics for startup screens?

I really like to have some graphic on my startup/login screen when starting my applications.
In one of my past employments, we had this on startup/login screen:
Image missing: Head bangs on computer
Where do you get your graphics for this purpose, and what are your favorites.
For some reason, I recently found this and am finding it very uplifting...
http://www.istockphoto.com/file_thumbview_approve/1132735/2/istockphoto_1132735-running-man.swf
I'm a big fan of using fotolia.com. For a couple of dollars you get licensed, professional quality images and graphics.
Another good source for icons such as above is iconfinder.net. There's tons of free for-business icons there.
You should get a graphic designer to create a splash screen for your product. You should be careful not to use others' copyrighted imagery in your software, unless you know it is licensed under a non-restrictive license like one of the Creative Commons licenses. Make sure you understand and comply with whatever license your imagery has.
We have an official logo for our core products, and in release, that's what we use for the splash screen.
During development, we put funny pictures that we find from around the internet into a folder on a shared network drive. The debug build will randomly pick a picture from that folder, if it can access it, and use that as the splash screen.
Some favs:
Seriously though, whatever you end up going with for your official splash screen, make sure you don't violate copyright, etc, etc...
Legally you can use a www.istockphoto.com

Resources