I am searching for more then 2 days and now I decided to ask here.
Is it possible to convert Android axml (the same as xml) template to Xamarin.Form's xaml template.
I am not good with template. That way I need some transformer tool but I can not find it. Or a good docs how to do it or what to change.
Is this even possible?
Even if you could find such tool, I'd advise you not to use it because there is no direct translation between what Android can do and what Xamarin.Forms can. Since Forms is meant to run on multiple platforms, it has a much smaller scope and hence not all Android Views have a Forms counterpart.
If your template is simple, translating it by hand wouldn't be hard. If your template is complex, a tool wouldn't translate it efficiently
Related
I have built a web based light SVG editor with simple functionalities such as (resize, rotate, dragging, coloring) using HTML canvas and fabricJS. Now just by curiosity i want to create a mobile app to this web based platform. started searching for alternatives or something similar to fabricJS in flutter but i had no luck.
Also searched for many solutions and i have never found something to serve this need in flutter or Native Android nor Swift, But I know it's possible there is canva who made something with the same approach but i couldn't find a way to know there secret sauce.
So, my direct question is if there an html canvas like in flutter and even a canvas-svg (and svg-canvas) parser.
Flutter doesn’t have SVG support and will never officially support it due to its performance.
Your best bet is to use CustomPaint for rendering the vector, then use SVG.js with js interop when it comes time to export the SVG. Not a simple solution since you’re having to work around lack of official support, but for basic functionality it should be completely feasible.
If you’re wanting to support importing vectors, you might want to check out flutter_svg’s code to take a look at how they handle SVG. This library only supports rendering SVGs, not manipulating or exporting them, but it may have some helpful code to point you in the right direction.
What would be the best way to do a 2D Avatar Creator without using an game engine (ie. Unity)?
The avatar images will be a basic body and placing different images for the different body parts - head, body, legs, arms, etc. Layer the different images on top of the base image.
Can this be achieved in a regular Android app without using any sort of a game engine? Are there any libraries like this already done?
For a 2D Avatar Creator, using a game engine for a job like that seems overkill (a library might be too much as well).
Coding it from scratch is much simpler than having to deal with a bunch of unnecessary tools that at the end of the day just take space. Also, it is much more efficient, as you only code the bits you need.
Because you want to make this app for android, I'd recommed doing so using the official Android SDK. It includes Eclipse (a very nice IDE as well as the most popular) so no need to worry on what else to download.
This SDK requires you to use Java (If you haven't learned this language yet then do so. It's probably the best and only language you'll need to know).
I want to learn if there is an easier way to create a UI for Android. For example, for web design, we can convert psd to html. For Android programming, is there a solution like that or a tool that we can use easily?
Unfortunately, no. Additionally, any automated tool to convert PSD to HTML will not end well for anything but the most simple layouts. If you're talking about just using Photoshop as a layout design tool then you can use the same process with Android if you like. There's no technical limitation there.
ADT includes a visual editor, but I can't say it's very good. I'd highly recommend just learning the layout APIs and getting good at editing the XML.
Update:
It turns out that Google has recently provided a number of stencils to help with this designing process. It's still not a UI editor, but it might help with sketching things out.
I want to be able to generate HTML representations of existing Android layouts. In my case it's to help document some of my applications for users who are blind, otherwise simple screenshots would probably suffice.
Since layouts in Android use XML I expect we can convert them relatively easily. I can write the code to do so for the layouts I use, however I would prefer to use something that already exists, or at least get some pointers on how to map the XML to equivalent HTML would be great. I'm considering using DroidDraw as a possible base for the work if I do it myself http://www.droiddraw.org/
XSLT is easy way to translate one XML into another, however there is a lot of work with defining html equivalents of android widgets.
You can find examples here
How to run XSLT procesor you can find here
XSLT and XSLT processors are common tools, so you will find lot of code and examples. This is a bit too complicated to just put here full solution ;)
I've been through the Android tutorials - these do a good job of introducing how we can hand-roll an Android user-interface. Actually, I do not need that level of control right now... I'm looking for something simpler...
I'd like to make an Android app which will mainly contain a number of standard UI widgets, nothing particularly fancy. Having done some VB development a long time ago (yes, I know it's crap!) - I particularly like the ability to paint user-interfaces with an interface designer and then add in the relevant callbacks via the IDE. I'm using Eclipse, so for now solutions requiring net-beans or other IDEs are not particularly helpful.
I'm well aware that this practice often produces sub-optimal code, and less than beautiful interfaces. That's not really a concern here. I just need to produce a certain effect quickly in order to prove a concept. There will be plenty of time later on for optimization if my idea is good enough.
If you create a layout xml file you get "drag/drop" for the activity layout. It's not perfect, but you should be able to accomplish what you're asking for.
How you were used to VB development won't work out for you.
You will have to create your interface in XML, and put events to the objects by code. There is DroidDraw but it won't get you further then the plain inbuilt IDE of Eclipse.
When creating XML layouts think like it a HTML layout, nested objects, tables/linearlayouts etc...