I know that there are some games created with MonoGame out there. I wonder if its possible to create a Xamarin.Forms app which has some games in it. More specifically, is it possible to start an OpenGL game when the user taps a Xamarin.Forms button for example? This is possible in native iOS games so it should be possible in Xamarin but I couldn't find any info about it.
I don't know why this question is downvoted.
In Xamarin.Forms you can use OpenGLView which you can use as any other Forms view (https://developer.xamarin.com/api/type/Xamarin.Forms.OpenGLView/). Please note that it only works on iOS and Android.
Mixing Forms and Native (https://github.com/xamarin/xamarin-forms-samples/tree/master/Forms2Native). With this approach you can have native games.
Related
How in Xamarin Forms, can I visually layout and create a form. Like you do in WPF , WinForms etc.. etc... in VS and everyother IDE. Do I alway have to hand-jam the XAML? Seems so absurd.
thanks in advance and have a great coding day
There is no Visual Designer, that has drag and drop functionality. You must code all views in either XAML or C#. (Preferably XAML).
The options you do have, is to view the XAML you are creating in real time, after you have typed it.
Xamarin Previewer (still in preview, built in to Xamarin)
Xamarin Inspector (if you have Visual Studio Enterprise)
UI Sleuth (Like Xamarin Inspector, more geared towards Xamarin Forms, and free)
Gorilla Player (works by actually running on a real device or simulator, but you don't have to keep compiling your app to see changes).
Give it a few weeks of writing XAML and it gets much easier.
I have a few problems with understanding of android tv development. First of all when i had launched android tv project and was trying to create custom interface for new activity, unfortunately i couldn't find any xml elements which could help me. From the example i got some ideas that whole interface provided by android SDK collected in many fragments. I just can modify colors, fonts, fonts size, transparency maybe animation and etc. But if i really need to customize structure of controls and WTF i wanna output "Hello World" inside label!!! Is it possible? I read all articles from this link https://developer.android.com/training/tv/index.html but it is still useless for me (maybe I am unique :) ). After this suffering with google guide, i have done a conclusion that the platform so new and there is no way to do some thing except only way that was provided by google. Am i right? If not, what should i do to find successful way?
The fragments provided by Google as part of the "leanback" framework are templates designed to make it easy for content providers to start publishing to Android TV without having to worry about the technical details of building a TV UI. The idea is that a content provider can create a channel just by feeding in their video content. This ease of use comes at a cost, customization is difficult or impossible with these templates.
However there is nothing preventing you from creating your own Activities and Fragments from scratch and implementing a completely custom UI for the TV, it works just like any other Android device. Add "android.intent.category.LEANBACK_LAUNCHER" to your manifest and see for yourself.
Where can I find a working example that uses the library "Vuforia" in Xamarin.Forms portable (Droid+iOS) for WinPhone I know that does not work?
Or working converted library for specific platform?
From what I understand. Xamarin is for Custom Touches and UI. So when it comes to Vuforia, the only feature it is going to use is the augmentation.
Hence, if you want to use Xamarin for it's functionalities, you can do so but it will not interfere with the Vuforia virtual touch buttons.
I hope this is what you asked for. Examples this specific aren't available online, I would think.
Is there a way to change the image of the pins in Xamarin Forms Maps. I want to make the pin a custom image, if it has to be done natively, can someone give me a simple example of it. Thank you.
To anyone coming to the later, this is now well supported in Xamarin Forms.
In essence you need to create a custom map class in your PCL or shared code that inherits from the Xamarin Forms Map and then create a Custom Renderer in each of the platforms' projects.
Those custom renderers will be different for each platform, dealing with the specifics of rendering icons and any pop up information shown when you click on that pin for that particular platform. You are not obliged to create a custom renderer for all platforms, for any that you don't a normal map will be displayed.
This is all now really well documented in the Custom Renderers | Customizing a Map section of the Xamarin Forms Developers Guide. That documentation walks through creating a custom renderer for Android, iOS and UWP and explains the code needed in detail. There's a lot of it, so I won't reproduce it here. There is also an accompanying sample solution here.
One point worth noting is that if you are trying to reproduce that code in your own project you will also need to add the images in the various drawable folders in the ProjectName\Droid\Resources directory, and also the two axml files in the layout directory.
Apparently this is quite locked down and you have to look at custom renderers to achieve what you are needing.
There is a discussion about this on the following link:-
http://forums.xamarin.com/discussion/17916/customization-of-xamarin-forms-maps-pins
, with specific reference to a project at the following link which someone has implemented custom image pins from the Assets folder:-
https://github.com/paulpatarinski/ShouldIWashMyCar/blob/master/Android/Renderers/MapViewRenderer.cs
I haven't tried this yet, however this would probably be a good place to start when looking to customize map rendering.
This project might be helpful to you. raechten/BindableMapTest
From the description:
Small sample for binding a collection to a Xamarin Forms Maps pins
(valid until binding directly to the Pins property will be supported
by Xamarin Forms directly).
Includes custom and clickable pins.
It has Android and iOS implementations.
I'm developing apps for the IOS platform using Flash CS5, but the interface components (like listbox, combobox, buttons and so) that comes with flash/flex are not optimized for IOS developing. Is out there a free library of components for the interface on IOS??? Thanks!
Take a look at Reflex and MinimalComps .
I was also recently provided these links as additional references:
http://custardbelly.com/blog/?p=173
http://blog.kevinhoyt.org/?p=548
Without any doubt, my favorite emerging and performant components skinned for iOS is Eskimo http://e-skimo.com/
Update: If you would like to use Stage3D UI Components (to access Hardware acceleration), you can use Foxhole: http://joshblog.net/2012/04/03/foxhole-mobile-ui-controls-for-starling/